FutureBasic Logo

<<    Index    >> FutureBasic 5

fn DynamicNextElement   function



Syntax:
nextIndex = fn DynamicNextElement( dynamic( gArray ) )

Description:
This function returns 1 + the highest used index of a dynamic array.

Example:
begin globals
dynamic gMyDynArray(1) as long
end globals
dim nextIndex as long
gMyDynArray(567) = 1234
nextIndex = fn DynamicNextElement( dynamic( gMyDynArray ) )
// nextIndex is 568

See Also:
DynamicInsertItems; dynamic; DynamicRemoveItems