|
GetFreeCell | |
Index = GetFreeCell(SourceArray()) | |
Parameters: SourceArray() = The array you wish to query |
|
Returns: Index = The Index of this free cell |
|
The GetFreeCell() function searches the passed arrays first dimension looking for a free cell. If no free cell can be found, the array is automatically expanded for you. This can very handy when managing lists of strings or types in an array. FACTS: * GetFreeCell will always return cell indexes of 1 or greater. Index zero is unused. * While GetFreeCell works with multi dimensioned arrays, it only searches the first dimension . * GetFreeCell considers a free cell to be any cell that is yet to be assigned any data. See FreeCell to free cells. * GetFreeCell is for use with Type and String arrays, but can also be used upon Integer, Floating Point arrays. Mini Tutorial: This example creates a simple character manager using a typed array. When the type is no longer needed it's destroyed using the FreeCell command.
|
Related Info: | ClearArray | ClearArrayCells | CopyArrayCells | FreeCell | GetArrayElements | Null : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |