|
|
|
Online Scripting Reference
|
|
setArray
|
Purpose
|
Declares a static array.
|
|
Syntax
|
setArray var {dimensions...}
var: A variable to define as an array.
{dimensions...}: A series of values defining the size of the array.
|
|
Notes
|
When a static array is defined, all its values are automatically set to "0".
Static arrays perform MUCH faster than TWX Proxy's dynamic arrays. Use them whenever possible.
|
|
Example
|
# load bust list
if ($BustFile <> "")
fileExists $exists $BustFile
if ($exists)
setArray $BustList SECTORS
setVar $i 1
read $BustFile $bust $i
while ($bust <> EOF)
setVar $BustList[$bust] 1
add $i 1
read $BustFile $bust $i
end
end
end
|
| Xide - 1 July 2004 at 2:52 AM (EST) |
Using SetArray on an array that has already been used will clear its contents.
|
Return to item listing |
|
|