Cadcorp SIS API Methods

GetListItemStr Method

Description

Gets the value of a string property on an item in a Named List.

Syntax

Visual Basic
Public Function GetListItemStr( _
   ByVal list As String, _
   ByVal n As Long, _
   ByVal propertyName As String _
) As String

Parameters

list
The Named List to query.
 
n
The index of the item in the Named List.
 
propertyName
The name of the property. All string properties end in '$'.

Return Type

The string value of the given property, for the given item in the given Named List.

Remarks

Available: GEO MM ME MD OD OM SISpy

Group:

Example

Brush = sis.GetListItemStr ("Zones", 6, "_brush")

Retrieves the brush (fill style) of item 6 in the Zones 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.


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).