_ListGetColumn

Gets (column) value of given position of a list

Lists.au3
_ListGetColumn( $aList [, $nPosition = 0 [, $nColumn ]] )

parameters

$aList List array as handle
$nPosition Position in list
$nColumn Column number if 2D list

return value

value (Column) value of given position, 1D = value (no column number needed), 2D = column value

@error

1 Not a list
2 List is empty, no values
3 Given position greater than list size
4 Given column greater than number of columns

related

_ListAdd, _ListInsert, _ListSet, _ListGet, _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 = _ListGetColumn( $aCats, 1, 1) ; returns "white" for the second row, second column