|
Post by tsh73 on Jan 4, 2019 8:19:37 GMT -5
Just surfaced - topic to save/read array.
I can use EVAL to make "save any array" routine, like this (code below); but there are no way for setting it by name. So no matching "read any array". I really feel it would be useful.
dim a(3) dim b(4) for i = 1 to 3 a(i)=i*10 next
for i = 1 to 4 b(i)=i*11 next
call printAnyArray "a",3 call printAnyArray "b",4
end
sub printAnyArray arrName$, arrSize print "Array ";arrName$;"(";arrSize;")" for i=1 to arrSize tmp=EVAL(arrName$+"("+str$(i)+")") print i, tmp next print end sub
|
|
|
Post by Brandon Parker on Jan 6, 2019 22:43:02 GMT -5
Haaaa....
That was one of my old wish-list items back on conforums .... Hopefully LB5 will have better array functionality.
I just ended up creating my Import Architect utility that handles my Dynamic Array library, User-Types, Macros, Enumerations, importing Binary TKN files for writing them out to disk during runtime, and BAS module import.
{:0)
Brandon R. Parker
|
|
|
Post by Carl Gundel on Jan 7, 2019 15:08:22 GMT -5
Just surfaced - topic to save/read array. I can use EVAL to make "save any array" routine, like this (code below); but there are no way for setting it by name. So no matching "read any array". I really feel it would be useful. Noted.
|
|
|
Post by bluatigro on Jan 15, 2019 9:06:01 GMT -5
ubound( array ) function wood be nice to
|
|