CArray:Exists
The Exists method returns true if a CArray member exists with the specified indices.
bSuccess = CArray:Exists( index ) |
index is the index of the member to test.
If the member is initialized, this method returns true.
If not initialized, false is returned.
If you use Init then the first n members are set and this function will return true if tested with an index in range. Otherwise, members are not initialized if you do not Set them or if you Remove them.
The following script tests whether the array member at index [2] has been initialized:
|
-- create a CArray |
|
-- set member [1] |
|
-- set member [2] |
|
-- has member [6] been set? |
|
|
|
-- result: A[6] exists= no |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.