vefatica May 12,934 170 Aug 30, 2017 #1 ... regardless of dimensions ... maybe "FILLARRAY <array_name> <string> Also, "SETARRAY /0 ..." might initialize all entries to "0" when it's created.
... regardless of dimensions ... maybe "FILLARRAY <array_name> <string> Also, "SETARRAY /0 ..." might initialize all entries to "0" when it's created.
vefatica May 12,934 170 Sep 24, 2017 #3 AnrDaemon said: What's wrong with unsetting and redefining it? Click to expand... I don't just want to [re]define it. I want to [re]initialize it with data. Code: setarray [/f] /0 a[%len,2] would be a lot easier than Code: setarray [/f] a[%len,2] do i=0 to %@dec[%len] ( do j=0 to 1 ( set a[%i,%j]=0 ) )
AnrDaemon said: What's wrong with unsetting and redefining it? Click to expand... I don't just want to [re]define it. I want to [re]initialize it with data. Code: setarray [/f] /0 a[%len,2] would be a lot easier than Code: setarray [/f] a[%len,2] do i=0 to %@dec[%len] ( do j=0 to 1 ( set a[%i,%j]=0 ) )
rps Jul 441 6 Sep 24, 2017 #4 I don't use arrays that often, but when I do your suggestions would be helpful. IMHO, this addition would also make the code easier to understood.
I don't use arrays that often, but when I do your suggestions would be helpful. IMHO, this addition would also make the code easier to understood.