All Cadcorp SIS API Methods

GetListItemInt Method

Description

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

Syntax

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

Parameters

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

Return Type

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

Remarks

Available: GEO D OD OM SISpy

Group:

Example

itemID = sis.ListItemInt ("Zones", 6, "_id&")

Retrieves the item ID 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.