Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

SETARRAY suggestions

Nov
76
1
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:
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

Back
Top