Search the Community
Showing results for tags '_arrayinsert'.
Greetings, I seem to be having a problem trying to insert values into an array in excess of the size of the array (its Ubound value). I thought the command would simply 'ReDim' the array in order to add another value...however that does not seem to be happening. My code is as below: ;**SET DYNAMIC ARRAY DIMENSIONS... $vValue = Int($_STRUCTURE_LEVEL - 1) ;seek the '$_HIERARCHY' level that is one 'previous' to the 'current' value...! $iStart = 0 ;set to begin search from element "0&q
Hello I am trying to insert or replace data in an existing 2D array. _ArrayInsert seems to always add a row when inserting the data to the specified column. This code is from the _ArrayInsert Function Reference, with only the modified sample I think I want to use... #include <Array.au3> Local $aArray_Base For $i = 0 To 9 For $j = 0 To 2 $aArray_Base[$i][$j] = $i & " - " & $j Next Next _ArrayDisplay($aArray_Base, "2D - Original") ; Insert single item in defined column $aArray = $aArray_Base _ArrayInsert($aArra
I need add record on last element of array When I try add item in the last element of array, nothing happend #include <Array.au3> Local $avArray $avArray = "JPM" $avArray = "Holger" $avArray = "Jon" $avArray = "Larry" $avArray = "Jeremy" $avArray = "Valik" $avArray = "Cyberslug" $avArray = "Nutster" $avArray = "JdeB" $avArray = "Tylo" _ArrayDisplay($avArray, "$avArray before _ArrayInsert()") _ArrayInsert