On 18/08/11 18:59, Rick Nuckolls wrote:
You can redimension an array as long as it is not a common variable. This
tends to be a “slow” process, or at least one that you do not want to do each
time that you add something to the array.
I believe, in INFORMATION mode, you can redimension a
Sorry, I'm coming to this late and haven't read the previous emails. Are we
talking about universe or unidata?
universe has a $OPTIONS STATIC.DIM which you can use in any flavor. It is set
by default in pick/in2/reality flavors. With $OPTIONS STATIC.DIM you get
pick-style arrays:
1: array size
...@wyanokegroup.com
To: u2-users@listserver.u2ug.org
Date: Thu, 18 Aug 2011 12:48:53 -0500
Subject: Re: [U2] easy way to get count of a DIM()?
Dimensioned arrays do not change their sizes.
If you DIM x(25), the size of x is 25
It's not like a dynamic array
However, when you MATWRITE the array
First off, I've never seen that syntax before. Do you mean:
DIM X(25)
or do you mean you are setting X to the 25th value in a dimensioned variable?
And I don't understand what you mean when you say some records get taken out.
How are they taken out?
I'm a little confused by your question.
Yes,
That is correct DIM X(25) to initialize X, how do we then get the size of X?
Thanks,
Chris
From: gglorfi...@vertisinc.com
To: u2-users@listserver.u2ug.org
Date: Thu, 18 Aug 2011 13:41:17 -0400
Subject: Re: [U2] easy way to get count of a DIM()?
First off, I've never seen
Message-
From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
boun...@listserver.u2ug.org] On Behalf Of Chris Austin
Sent: Thursday, August 18, 2011 1:44 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] easy way to get count of a DIM()?
Yes,
That is correct DIM X(25
@listserver.u2ug.org
Date: Thu, 18 Aug 2011 12:48:53 -0500
Subject: Re: [U2] easy way to get count of a DIM()?
Dimensioned arrays do not change their sizes.
If you DIM x(25), the size of x is 25
It's not like a dynamic array
However, when you MATWRITE the array to disk, it will only write out
---
returns:
23²1
From: cjausti...@hotmail.com
To: u2-users@listserver.u2ug.org
Date: Thu, 18 Aug 2011 12:57:06 -0500
Subject: Re: [U2] easy way to get count of a DIM()?
We're trying to create the dimensioned array at run time with a size based
:17 -0400
Subject: Re: [U2] easy way to get count of a DIM()?
First off, I've never seen that syntax before. Do you mean:
DIM X(25)
or do you mean you are setting X to the 25th value in a dimensioned
variable? And I don't understand what you mean when you say some records
get taken out