![]() |
<< Index >> |
FutureBasic 5 |
index$ D | statement | |
|
index$ D (element [,indexID])
index$
string arrays (see the index$ statement and the clear <index> statement for information about how index$
arrays are created). The indexID
parameter specifies which of the index$
arrays (0 through 9) to delete an element from ; if this parameter is omitted, index$
array 0 is used. The element
parameter specifies which element to delete.index$ D
statement does not merely assign a null string to the indicated element. Instead, it moves all of the subsequent array elements in memory, in order to fill the "gap" left by the deleted element. As shown in the diagram, this also affect the element numbers by which the moved strings are identified.index$ I
, which inserts an element into the array.index$ D
, and "clearing" an element by assigning a null string to it.INDEX$ | |||||||||||||||
|
|
||||||||||||||
Before | After |
INDEX$(5) = "" | |||||||||||||||||
|
|
||||||||||||||||
Before | After |