SETARRAY suggestions

x13

Nov 9, 2016
76
1
Netherlands
Hi

So.
My plan was to input a file into an array. That's easy as long as you only need a single-dimension matrix.
Otherwise you're SOL.

Sure I could fill it the old-fashioned way with a DO loop, but that's beside the point.

You can't do a SETARRAY myarray[%@ARRAYINFO[myarray,1],col2,col3,...]
Well you can, but then you need to use /F, which clears the array.

My suggestion is two-fold :
  1. Allow SETARRAY /R to optionally specify multiple dimensions
  2. Add a new SETARRAY switch (like /K(eep)) that does a non-destructive redimension

I think those would be welcome improvements.
Thanks.

Mark/x13
 
Last edited:
Oct 4, 2017
1
0
Hi

So.
My plan was to give Anvarol a try and input a file into an array. That's easy as long as you only need a single-dimension matrix.
Otherwise you're SOL.

Sure I could fill it the old-fashioned way with a DO loop, but that's beside the point.

You can't do a SETARRAY myarray[%@ARRAYINFO[myarray,1],col2,col3,...]
Well you can, but then you need to use /F, which clears the array.

My suggestion is two-fold :
  1. Allow SETARRAY /R to optionally specify multiple dimensions
  2. Add a new SETARRAY switch (like /K(eep)) that does a non-destructive redimension

I think those would be welcome improvements.
Thanks.

Mark/x13
I agree Mark, those would be neat little improvements. I hope they get implemented.
 
Last edited:

Similar threads