_ListGet
Gets (array) value of given position of a list
Lists.au3
_ListGet( $aList [, $nPosition = 0 ] ) |
parameters
| $aList |
List array as handle |
| $nPosition |
Position in list |
return value
| value |
(Array) value of given position, 1D = value, 2D = Array |
@error
| 1 |
Not a list |
| 2 |
List is empty, no values |
| 3 |
Given position greater than list size |
related
_ListAdd, _ListInsert,
_ListSet, _ListGetColumn,
_ListValueInList, _ListValueInListColumn
example
| Local $aCats = _ListCreate(2) |
; 2 columns list |
| _ListAdd( $aCats, "siamese", "red" ) |
; add red siamese cat |
| _ListAdd( $aCats, "balinese", "white" ) |
; add white balinese cat |
| $aCat = _ListGet(
$aCats, 1 ) |
; returns row array with white balinese cat, second row |