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.
You can use inmat( X ) to get a vector on the size of the array, as you might want to do within a subroutine. Rick Nuckolls Lynden Inc On Aug 18, 2011, at 10:43 AM, Chris Austin wrote: > > 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 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: u2-users-boun...@listserver.u2ug.org >> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Chris Austin >> Sent: Thursday, August 18, 2011 1:30 PM >> To: u2-users@listserver.u2ug.org >> 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 >> U2-Users@listserver.u2ug.org >> http://listserver.u2ug.org/mailman/listinfo/u2-users >> _______________________________________________ >> U2-Users mailing list >> U2-Users@listserver.u2ug.org >> http://listserver.u2ug.org/mailman/listinfo/u2-users > > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users