world.ArrayCreate
Creates an array
Prototype
long ArrayCreate(BSTR Name);
Description
This creates an array for use by scripting. The array name may consist of any characters (except the "null" character, hex 00), and is case-sensitive.
The array must be created before it is used.
VBscript example
ArrayCreate "spells"
Lua example
ArrayCreate "spells"
Return value
eBadArrayName: Name cannot be empty
eArrayAlreadyExists: Array already exists
eOK: Created OK
Related topic
See also
| Function | Description |
|---|---|
| ArrayClear | Clears an array |
| ArrayDelete | Deletes an array |
| ArrayListAll | Gets the list of arrays |