And that worked in Dos (up to v6.0a at least) as well, for those who are
interested.

Regards, Alastair.

----- Original Message -----
From: "Dennis McGrath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 12:30 AM
Subject: RE: Enhancement -- do you agree?


> When I want to replicate a variable with a variation in the name and
> definition, I edit the original variable. Changing the variable name make
> R:Base think you are createing a new variable, which of course you are!!!
> Just tweak the defintion and say add.  Done.  I get a lot of mileage out
of
> this technique.
>
> -- Dennis McGrath
> mailto:[EMAIL PROTECTED]
>
> -- Productivity Tools for R:Base Programmers
> http://www.enteract.com/~mcgrath/dennis
>
> -- Full time consultant with:
> SQL Resources Group
> Steve Hartmann
> Oak Park, IL
> mailto:[EMAIL PROTECTED]
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Ron Rose
> Sent: Tuesday, October 30, 2001 4:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Enhancement -- do you agree?
>
>
> I am not clearing understanding what you want about the variables.
> Do you wish the variables to create themselves and receive a value?
> The first part can be done using the indirect variable.
> SET VAR .indirect [data type] = .what_is_inside.
> Note: period on indirect.
> RRR
>
> Jim Limburg wrote:
> >
> > G-Day all
> >
> > I was wondering... I have seen a few pings on
> > this list get started about what one or two
> > would like to see in the next rbase release
> > or patch and then others chime in and the
> > next thing you know Dr:R> sees that this is
> > an overwhelming asked for feature and he
> > gets it implemented. I am hoping for the
> > same thing here.
> >
> > I have a several forms or reports that have
> > countless variables that are sequenced/
> > incremented only by the last char being
> > a number. ie: like vf_value1, vf_value2
> > and so on.
> >
> > I put in an offical request a good while
> > back #1301 for this feature and was wondering
> > if others would like to see a portion of
> > the reports and forms variable declaration
> > dialog have this feature added. It would
> > have a text box that one could put
> > in the starting var like vf_value and an
> > add by increment button or spinner button
> > setup using the already in place add button
> > with another text box for the value you want
> > this variable to be assigned that could be
> > incremented as well (???) or have the option
> > to just set it to NULL.
> >
> > This way it would greatly reduce the amount
> > of time I spend typing in this same info,
> > or cut/paste which is what I usually do to
> > get this job done.
> >
> > Maybe something like this
> >
> > |-----------------------====----------------------|
> > | |----------|   |--| |  _    |----------|   |--| |
> > | | vf_value | + | 1| | |_| = | .value   | + | 1| |
> > | ------------   ---- |       ------------   ---- |
> > |                     |  _    |----------|        |
> > |                     | |_| = |  NULL    |        |
> > |                     |       |----------|        |
> > |                     |        /-----------------\|
> > |                     |        | ADD VAR TO LIST ||
> > |                     |        \-----------------/|
> > |-------------------------------------------------|
> >
> > and it would result in variable being added
> > to the list like and increment the number (1
> > in this case):
> >
> > vf_value1 = .value1
> > vf_value2 = .value2
> > vf_value3 = .value3   etc...
> >
> > Thought it might be worth a try
> >
> > I like to use code before forms/reports with
> > all these variable like this: (THANKS to TROY S.)
> >
> > --THIS WILL MAKE VARS vf_value0 THROUGH
> > --vf_value100 of type text = NULL
> > SET VAR vname TEXT = 'vf_value'
> > SET VAR vi INTEGER = 0
> > SET VAR vtemp TEXT = NULL
> > WHILE vi <= 100 THEN
> >   SET VAR vtemp = (.vname + (CTXT(.vi)))
> >   SET VAR &vtemp TEXT=NULL
> >   SET VAR vi = (.vi + 1)
> > ENDWHILE
> > --THIS WILL SET THE ABOVE VARIABLES TO A
> > --VALUE IF NEEDED
> > SET VAR vi = 0
> > WHILE vi <= 100 THEN
> >   SET VAR vtemp = (.vname + (CTXT(.vi)))
> >   --SET VAR &vtemp = ('value' & (CTXT(.vi)))
> >   SET VAR vi = (.vi + 1)
> > ENDWHILE
> >
> > Thanks for any input
> > Jim Limburg
>

Reply via email to