I've read and reread the Help, but still fail to fully understand the phrase "stored in linear column-major order".
I have a multi-dimensional array, where the need to REDIM PRESERVE dictates the array structure.
The code below does not insert a blank array element as I would have expected.
Can any one point to my error. Sorry about Header spelling, but I can't get at it to fix!
TIA
Ian B
I have a multi-dimensional array, where the need to REDIM PRESERVE dictates the array structure.
The code below does not insert a blank array element as I would have expected.
Can any one point to my error. Sorry about Header spelling, but I can't get at it to fix!
TIA
Ian B
Code:
FUNCTION PBMAIN () AS LONG DIM sTest(3,2) AS STRING sTest(0,0)="Code12" sTest(1,0)="BLACK" sTest(2,0)="Butterflies" sTest(3,0)="3" sTest(0,1)="Code15" sTest(1,1)="RED" sTest(2,1)="Agapanthus" sTest(3,1)="12" sTest(0,2)="Code77" sTest(1,2)="GREY" sTest(2,2)="Fennel" sTest(3,2)="2" MSGBOX sTest(2,2) & " " & STR$(UBOUND(sTest,2)) ARRAY INSERT sTest(0,1) FOR 2 MSGBOX sTest(0,2) & " " & STR$(UBOUND(sTest,2)) END FUNCTION
Comment