FutureBasic Logo

<<    Index    >> FutureBasic 5

fn DynamicNextElement   function



Syntax:
nextIndex = fn DynamicNextElement( array )

Description:
This function returns in nextIndex ( an UInt32 variable ) the next available unused index in a dynamic array.

Example:
begin globals
dynamic myDynArray(1000) as long
end globals
myDynArray(567) = 1
nextIndex = fn DynamicNextElement( dynamic( myDynArray ) ) // FBtoC syntax
// nextIndex is 568

See Also:
fn DynamicInsertItems; dynamic; fn DynamicRemoveItems