We're trying to create the dimensioned array at run time with a size based on a 
variable, which works in UniVerse
when using the -STATIC.DIM option. We need to know (in another program), what 
the size of that dimensioned array is.

Chris


> From: [email protected]
> To: [email protected]
> 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
>     up to the last physical data in the array, and ignore the trailing
>     blank slots.
> 
> George
> 
> > -----Original Message-----
> > From: [email protected] [mailto:u2-users-
> > [email protected]] On Behalf Of Chris Austin
> > Sent: Thursday, August 18, 2011 1:44 PM
> > To: [email protected]
> > Subject: Re: [U2] easy way to get count of a DIM()?
> > 
> > 
> > Yes,
> > 
> > That is correct DIM X(25) to initialize X, how do we then get the size
> > of X?
> > 
> > Thanks,
> > 
> > Chris
> > 
> > 
> > > From: [email protected]
> > > To: [email protected]
> > > 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 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.
> > >
> > > -----Original Message-----
> > > From: [email protected] [mailto:u2-users-
> > [email protected]] On Behalf Of Chris Austin
> > > Sent: Thursday, August 18, 2011 1:30 PM
> > > To: [email protected]
> > > Subject: [U2] easy way to get count of a DIM()?
> > >
> > >
> > > I'm trying to get the count of a dimensioned array DIM() in UniVerse
> > 10.x
> > >
> > > Let's say we have a variable that's set to an array:
> > >
> > > X = DIM(25)
> > >
> > > if I wanted to find out the count of X later on in the program (let's
> > say some records get taken out and we need the count), how would
> > > you do this?
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > >
> > > _______________________________________________
> > > U2-Users mailing list
> > > [email protected]
> > > http://listserver.u2ug.org/mailman/listinfo/u2-users
> > > _______________________________________________
> > > U2-Users mailing list
> > > [email protected]
> > > http://listserver.u2ug.org/mailman/listinfo/u2-users
> > 
> > _______________________________________________
> > U2-Users mailing list
> > [email protected]
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
                                          
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to