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.
| Type | Integer Name | String Name |
|---|---|---|
| Add-In properties | 1 - 9999 | No prefix |
| Macro properties | 10000 - 19999 | Uses prefix "M:" |
| User-defined properties | 20000 - 30000 | Uses 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