LIST.Insert |
new-size = LIST.Insert( lid AS HANDLE, lex AS INTEGER [=LS_Back] ) AS INTEGER
Inserts an empty List Element at the position specified by the lex argument. There are two special constants to point to the front and back of the list.
CONST LS_Front = 0xFFFFFFFF CONST LS_Back = 0x7FFFFFFF
Example:
DIM hList AS HANDLE
hList = LIST.Create( "Kalle", STRING, "Nisse", REAL )
LIST.Insert( hList ) LIST.Insert( hList ) LIST.Insert( hList, LS_FRONT ) LIST.Insert( hList, 1 )
|