232showtime Posted July 26, 2016 Posted July 26, 2016 (edited) good day just need some little help to populate arrays, I got confused with other examples I just made it like this to avoid confusion. #include <Array.au3> For $i = 0 To 170 For $j = 0 To 9 $aiArray[$i][$j] Next Next _ArrayDisplay($aiArray) I know how to populate arrays using other method like this Local $sInput0 = "A" Local $sInput1 = "B" Local $sInput2 = "C" Local $aiArray[1][3] = [[$sInput0, $sInput0, $sInput2]] _ArrayDisplay($aiArray) but I want to learn how to populate arrays using the first script. thanks in advance I tried this and got error #include <Array.au3> Local $aiArray[170][9] For $i = 0 To UBound($aiArray) - 1 For $j = 0 to UBound($aiArray) - 1 $aiArray[$i][$j] = $i & $j Next Next _ArrayDisplay($aiArray) Hi admin Sorry, I figured it out, I deleted UBound($aiArray) - 1 by mistake and try to put 9 on it and worked lol Edited July 26, 2016 by 232showtime Solved.. ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon.
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