DIM myArray myArray = 500 myArray = 510 myArray = 600 myArray = 610 myArray = 620 myArray = 700 myArray = 710 myArray = 720 myArray = 730VARDIM1(myArray)
dushyant wrote:I think so.
Barry, so you mean it builds like a matrix of 3x4 cells and assigns 0 to any non-assigned cells?
Got it Barry, thanks.
Just wondering if we can loop through the values of a dictionary, like we do through an array:
FOR i = 1 TO VARDIM1(myArray) ...
You can loop through the array as you have shown but just ignore if the value is zero.
FOR n = 1 TO VARDIM1(myArray) FOR i = 1 TO VARDIM2(myArray) IF myArrayBarry.
<> 0 THEN PRINT myArray ENDIF NEXT i NEXT n
Uninitialized array element at index: (as I didn't set , but only up to )
In that case, multi-dim arrays might not be helpful for what I am trying to do. Thanks guys for the help.No. Unfortunately not.
Can dictionaries be looped through?
Barry, I had tried that but it seems to still scan through the part inside the IF statement (even if the condition is false) and gives an error:Uninitialized array element at index: (as I didn't set , but only up to )
Strange, I get this error..