_ListAdd

Adds an element (row) to a list

Lists.au3
_ListAdd( $aList [,$vColumn1 = 0 [,$vColumn2 = 0 [,$vColumn3 = 0 [,$vColumn4 = 0 [,$vColumn5 = 0 [,$vColumn6 = 0 [,$vColumn7 = 0 [,$vColumn8 = 0 [,$vColumn9 = 0 [,$vColumn10 = 0 [,$vColumn11 = 0 [,$vColumn12 = 0 [,$vColumn13 = 0 [,$vColumn14 = 0 [,$vColumn15 = 0 [,$vColumn16 = 0 [,$vColumn17 = 0 [,$vColumn18 = 0 [,$vColumn19 = 0 [,$vColumn20 = 0]]]]]]]]]]]]]]]]]]]]) )

parameters

$aList List array as handle
$vColumn1 to $vColumn20 Value of column 1 to 20

return value

boolean value True = True = Element added, False = Not a list

related

_ListInsert, _ListSet, _ListGet, _ListGetElement, _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
_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