09-24-2013, 06:53 AM
I have this code which works but where the array grid is fixed to [1 4]
Macro Macro10
Is it possible to declare "grid" in a resizable way?
I read this topic:
Help with multidimensional arrays
And based on this:
Macro Macro10
I assumed when declaring the second index as zero it would make the second index resizable
But this does not work (making bot dimensions resizable)
This also doesn't work (making second dimension resizable)
Only when declaring the array "grid" in a fixed way makes it work correctly.
Macro Macro10
str ss=
;app_1
;app_2
;app_3
;app_4
ARRAY(str) grid.create(1 4)
int i
for i 0 numlines(ss)
,_s.getl(ss i)
,grid[0 i]=_s
ICsv- t_csv=CreateCsv()
t_csv.FromArray(grid)
Is it possible to declare "grid" in a resizable way?
I read this topic:
Help with multidimensional arrays
And based on this:
Macro Macro10
ARRAY(str) a.create(6 0) ;;first dimension has 6 elements, one for each word; second dimension is resizable. Imagine that first dimension is horizontal (x), second vertical (y).
I assumed when declaring the second index as zero it would make the second index resizable
But this does not work (making bot dimensions resizable)
This also doesn't work (making second dimension resizable)
Only when declaring the array "grid" in a fixed way makes it work correctly.