|
UnDim | |
UnDim ArrayName() | |
Parameters: ArrayName() = The Array you wish to UnDim. |
|
Returns: NONE | |
UnDim will completely free any memory that an array might be using. Freeing arrays memory that we're no longer using is a good programming habit to get into! Once the array has been UnDimmed, it will be empty of all information. So before it can used again, PlayBASIC expects that you'll DIMension it again. FACTS: * When you UnDIM an array, you return (free) this memory back to the computer. * If you UnDim an array that contains information, that information will be lost. * The array name following the UnDim command does not require any array indexes, just a pair of closed brackets. i.e UnDim MyArray() * An UnDim'd array can't be used again, until it's been created (allocated) using the DIM command. Mini Tutorial: Most commonly we'll only need to use UnDim to free an array that was created for temporary use. So in that case we'd dimension our temp array, perform our calculations upon it, and once were done, Undim it.
|
|
Example Source: Download This Example
|
Related Info: | DeleteArray | Dim | GetArrayDimensions | GetArrayElements | GetArrayStatus | MakeArray | ReDim | UnDimAll : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |