Documentation Center

PslSourceList.Property

Returns a custom property of the string list. Custom properties are defined by add-ins or macros.

Syntax

Expression.Property (Name as Variant) as Variant

Expression Object of type PslSourceList

Name Name of the property. If the macro sets a new value, the property name must be between 10000 and 19999 or start with "M:" (see below)

Custom Properties

Custom Properties can be defined by parser add-ins, a macro or the user. All properties are in the same list, so they all can be accessed. To distinguish the types, different property names are used. When setting a property the macro is responsible for using the correct name, otherwise the property may be removed when updating string lists.

TypeInteger NameString Name
Add-In properties1 - 9999No prefix
Macro properties10000 - 19999Uses prefix "M:"
User-defined properties20000 - 30000Uses prefix "U:"

Example

Dim src As PslSourceList
Set src = PSL.ActiveSourceList
If not src Is Nothing Then
    src.Property(10001) = "Hello!"
    psl.Output(src.Property(10001))
End If