_ListInsert

Inserts an element (row) at given position into a list

Lists.au3
_ListInsert( $aList [,$nPosition = 0, [,$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
$nPosition Insert position in the list
$vColumn1 to $vColumn20 Value of column 1 to 20

return value

boolean value True = True = Element inserted, False = Not a list or given position larger than list size

related

_ListAdd, _ListSet, _ListGet, _ListGetElement, _ListValueInList, _ListValueInListColumn

example

Local $aCats = _ListCreate(2) ; 2 columns list
_ListAdd( $aCats, "siamese", "red" ) ; add red siamese cat
_ListInsert( $aCats, 0,"balinese", "white" ) ; insert white balinese cat before first row