_ListCreate

Creates a 1D or 2D list for storing values, maximum 20 columns

Lists.au3
_ListCreate()

parameters

none

return value

array value List array as handle

related

_ListIsList, _ListToArray, _ArrayToList

example

Local $aCats = _ListCreate(2) ; 2 columns list
_ListAdd( $aCats, "siamese", "red" ) ; add red siamese cat
_ListAdd( $aCats, "balinese", "white" ) ; add white balinese cat
_ListValueInList( $aCats, "siamese" ) ; returns 0 as "siamese" is in first row
_ListValueInList( $aCats, "white" ) ; returns 1 as "white" is in second row
_ListValueInListColumn( $aCats, 0, "white" ) ; returns -1 as "white" isn't in column 0, the first column