lucio69f Posted November 16, 2023 Share Posted November 16, 2023 Hi guys i try to add in array bidimentional a data but when i call arraydisplay is empty , why ?? #include <Array.au3> Local $aArray[2][1], $sFill ; Add item delimited string ;$aArray = $aArray_Base $sFill = "New Item 2 - 0|New Item 2 - 1" _ArrayAdd($aArray, $sFill) _ArrayDisplay($aArray, "2D - Item delimited") Link to comment Share on other sites More sharing options...
Andreik Posted November 16, 2023 Share Posted November 16, 2023 Because your array have 2 rows and 1 column but $sFill looks like you want to add into an array with two columns not just one. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
lucio69f Posted November 16, 2023 Author Share Posted November 16, 2023 therefore , i can think $aArray[Y][X] ? right ? Local $aArray[2][1], Link to comment Share on other sites More sharing options...
ioa747 Posted November 16, 2023 Share Posted November 16, 2023 (edited) or Local $aArray[1][2], Edit: #include <Array.au3> Local $aArray1[0][2], $sFill Local $aArray2[0], $sFill ; Add item delimited string ;$aArray = $aArray_Base $sFill = "New Item 2 - 0|New Item 2 - 1" _ArrayAdd($aArray1, $sFill) _ArrayDisplay($aArray1, "$aArray1") $sFill = "New Item 2 - 0|New Item 2 - 1" _ArrayAdd($aArray2, $sFill) _ArrayDisplay($aArray2, "$aArray2") Edited November 16, 2023 by ioa747 lucio69f 1 I know that I know nothing Link to comment Share on other sites More sharing options...
jchd Posted November 17, 2023 Share Posted November 17, 2023 8 hours ago, lucio69f said: Local $aArray[2][1], This is semantically equivalent to $aArray[2] just like $aArray[2][1][1][1][1] would be, beside memory organization difference (an implementation detail). How many useable array cells do you have to store data in all these 3 cases? Respectively 2*1, 2 and 2*1*1*1*1, that is : two, two and two. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now