GetListItemProperty Method
Description
Gets the property of an item in a Named List. This allows you to use a single method for getting integers, floats, doubles and strings.
Syntax
Visual Basic |
---|
Public Function GetListItemProperty( _ ByVal list As String, _ ByVal n As Long, _ ByVal propertyName As String _ ) As Object |
Parameters
- list
- The Named List to query.
- n
- The index of the item in the Named List.
- propertyName
- The name of the property.
Return Type
The given property for the given item in the given Named List.
Remarks
Available: DK OD OM PySis
Group:
Example
Gml_ID = sis.GetListItemProperty ("Roads", 6, "GML_ID@")
Retrieves the GML_ID value as a long integer of item 6 in the Roads named list.
Named list indices run from zero to one less than the size of list so this example accesses the seventh item in the list.