Re: [U2] easy way to get count of a DIM()?

2011-08-19 Thread Wols Lists
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

Re: [U2] easy way to get count of a DIM()?

2011-08-19 Thread Ed Clark
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

Re: [U2] easy way to get count of a DIM()?

2011-08-19 Thread Allen E. Elwood
...@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

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Glorfield, Gordon
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.

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Chris Austin
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

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread George Gallen
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

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Chris Austin
@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

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Chris Austin
--- 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

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Rick Nuckolls
: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