LIST.At |
![]() ![]() |
value = LIST.At( lid AS HANDLE, lex AS INTEGER, itx AS INTEGER, value AS VARIANT ) AS VARIANT ' Sets new Value
value = LIST.At( lid AS HANDLE, lex AS INTEGER, item AS STRING, value AS VARIANT ) AS VARIANT ' Sets new Value
value = LIST.At( lid AS HANDLE, lex AS INTEGER, itx AS INTEGER ) AS VARIANT ' Returns current Value
value = LIST.At( lid AS HANDLE, lex AS INTEGER, item AS STRING ) AS VARIANT ' Returns current value
Access (Set or Get) the items in a List Element specified by the lex. The item can be accessed using the itx or the Item Name.
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 )
LIST.At( hList, 0, 0, "Kalle Anka " ) LIST.At( hList, 0, 1, 1.234 ) LIST.At( hList, 1, 0, "Kajsa Anka " ) LIST.At( hList, 1, 1, 2.345 ) LIST.At( hList, 2, 0, "Joakim von Anka " ) LIST.At( hList, 2, 1, 3.456 ) LIST.At( hList, 3, 0, "Farmor Anka " ) LIST.At( hList, 3, 1, 4.567 )
FOR i = BASE TO LIST.Size( hList2 ) - 1 + BASE PRINT LIST.At( hList2, i, "Kalle" );": ";LIST.At( hList2, i, "Nisse" ), ENDFOR
LIST.Close( hList )
END |