I always do a 

CLEAR VAR %1-%, , %2-%, ......

Fred Antrobus


On Wed, 2002-07-17 at 08:41, J. Stephen Wills wrote:
> Troy, lemme' ask you f/confirmation.  Did you use the SET MANY=~ so that the
> following CLE VAR %1, %2 would work properly?
> 
> TIA,
> Steve in Memphis
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Troy Sosamon
> > Sent: Wednesday, July 17, 2002 9:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Parameters, Value of
> >
> >
> > Steve,
> >
> > You have the ability to pass parameters in R:base, but you should
> > be sure to
> > clean the stuff up so you don't have any weird problems.
> >
> > Example, I want a program that computes the area of a square, and
> > I want to
> > pass it the length of the sides and the program will write the
> > result to the
> > screen.
> >
> > I call it like this:
> > run square.cmd using 3, 2
> >
> > square.cmd looks something like this:
> > set var side1 real = 0
> > set var side2 real = 0
> >
> > set var side1 = .%1
> > set var side2 = .%2
> > set many=~
> > cle var %1, %2
> > set many=%
> >
> > set var varea real
> > set var varea = (.side1 * .side2)
> > write 'The area of a box of', .side1, 'by', .side2, 'is', .varea
> >
> > cle var side1, side2, varea
> > return
> >
> >
> > You want to clear out your % vars as soon as you are done w/ them so they
> > don't get in the way in case you call other programs passing parameters.
> > Because all vars in R:base are global, it really is not necessare
> > to use them.
> >
> > Troy Sosamon
> >
> >
> > >===== Original Message From [EMAIL PROTECTED] =====
> > >Could y'all gimme' a few words about parameters?  I'm wondering
> > about their
> > >value, given that var's are global in RB, yet I see echoed by SHO VAR,
> > >%1-1..N, %2-1..N, etc.  Such elucidation would be appreciated.
> > >
> > >TIA,
> > >Steve in Memphis
> > >
> > >================================================
> > >TO SEE MESSAGE POSTING GUIDELINES:
> > >Send a plain text email to [EMAIL PROTECTED]
> > >In the message body, put just two words: INTRO rbase-l
> > >================================================
> > >TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> > >In the message body, put just two words: UNSUBSCRIBE rbase-l
> > >================================================
> > >TO SEARCH ARCHIVES:
> > >http://www.mail-archive.com/rbase-l%40sonetmail.com/
> >
> > Troy Sosamon
> > Denver Co
> > [EMAIL PROTECTED]
> >
> > ================================================
> > TO SEE MESSAGE POSTING GUIDELINES:
> > Send a plain text email to [EMAIL PROTECTED]
> > In the message body, put just two words: INTRO rbase-l
> > ================================================
> > TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> > In the message body, put just two words: UNSUBSCRIBE rbase-l
> > ================================================
> > TO SEARCH ARCHIVES:
> > http://www.mail-archive.com/rbase-l%40sonetmail.com/
> >
> 
> ================================================
> TO SEE MESSAGE POSTING GUIDELINES:
> Send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: INTRO rbase-l
> ================================================
> TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: UNSUBSCRIBE rbase-l
> ================================================
> TO SEARCH ARCHIVES:
> http://www.mail-archive.com/rbase-l%40sonetmail.com/
-- 
-- Fred Antrobus
-- [EMAIL PROTECTED]
-- (425)235-7796

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to