CArray:Init
The Init method sets the first nCount CArray members to the same value.
CArray:Init( nCount, value ) where |
nCount is the number of members to define.
value is the target value to assign and may be a number, string, or other value.
The following script initializes the first 1000 members to a value of "name":
|
-- create a CArray |
|
-- set members 1 through 1000 |
|
-- result: A[500] = 'name' |