CATSchPlatformInterfaces SchListOfLongs (Object)
All Frameworks Object Hierarchy This Framework Indexes
SchListOfLongs (Object)
Represent a non-persistant list of LONGs to be used with schematic IDLs.
Property Index
-
Count
- Returns the number of long integers in the list.
Method Index
-
Append
- Adds an long integer to the end of the list.
-
Item
- Returns a long integer from its index in the list.
-
RemoveByIndex
- Remove a long integer from the list by specifying its position in the list.
Properties
o Property Count( | ) As (Read Only) |
-
Returns the number of long integers in the list.
- Example:
-
This example retrieves in NumberOfLongs the number of long integers
currently gathered in MyList.
NumberOfLongs = MyList.Count
Methods
-
Adds an long integer to the end of the list.
- Parameters:
-
- iLong
- The long integer to be added to the list.
- Example:
- The following example appends a long integer to the list.
Dim MInteger As Long
MInteger = 4
Dim MyList As SchListOfLongs
MyList.Append(MInteger)
-
Returns a long integer from its index in the list.
- Parameters:
-
- iIndex
- The index of the first long integer in the collection is 1, and
the index of the last long integer is Count.
- Returns:
- the retrieved long integer.
- Example:
- The following example returns in the third long integer in the list.
Dim MyLong As Integer
Dim MyList As SchListOfLongs
Set MyLong = SchListOfLongs.Item(2)
o Sub RemoveByIndex( | | iIndex) |
-
Remove a long integer from the list by specifying its position in the list.
- Parameters:
-
- iIndex
- The position of the long integer to be removed in the list.
- Example:
- The following example removes the second entry in the list. Please note that the
list index starts with 1.
Dim MyList As SchListOfLongs
MyList.Remove(1)
Copyright © 2003, Dassault Systèmes. All rights reserved.