[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Let versus Move
- Subject: Re: Let versus Move
- From: Sam Spritzer <SSpritzer@GW.CTG.COM>
- Date: Fri, 27 Aug 1999 13:01:35 -0400
Joe...
The only thing to be careful of is that MOVE does have more overhead than LET.
Sam
<<< Joe <jejohn1216@SURFREE.COM> 8/27 12:45p >>>
Thanks to everyone who responded -- I guess I just inherited some Bad Code (does that cause Code Poisoning?) ;{)
- Joe
On Fri, 27 August 1999, Manoj Chainani wrote:
>
> Hi Joe,
> Refering to your question regarding difference between Let and Move, the
> only diff. that I can think of is that in 'Move' you can provide an edit
> mask, which I don't think you can do using 'Let'
> eg. Move 0 to $numb 99.99
> The statement which you have given containing both Let and Move on the same
> set of variables, well, probably the programmer might have thought that if
> one doesn't work, the other might (just kidding).
>
>
> Manoj
>
>
>
> >From: Joe <jejohn1216@SURFREE.COM>
> >Reply-To: SQR-USERS@list.iex.net
> >To: Multiple recipients of list SQR-USERS <SQR-USERS@list.iex.net>
> >Subject: Let versus Move
> >Date: Fri, 27 Aug 1999 08:12:21 -0700
> >
> >Greetings, SQRUG
> >
> >I inherited an SQR that has the following code in a procedure called
> >get-timelines:
> >
> > let $firstline = 'Y'
> > let $tl_cust_id = ' '
> >.......
> > let #pbill_tot_fee_expense = 0
> > let #pbill_tot_oth_plcmnt_exp = 0
> >.......
> > move 0 to #pbill_tot_oth_plcmnt_exp
> > move 0 to #pbill_tot_fee_expense
> >.......
> >begin-select
> >.......
> >
> >I know the procedure is to set values to 0, but I don't see why you need to
> >do Let and Move to the same variable.
> >
> >SQR Server Manual says that:
> >LET assigns the value of an expression ('0') to a string/numeric/date
> >variable, and that
> >MOVE moves one field ('0'?)to another field and provides the option of
> >edits to the field.
> >
> >Can someone explain this to me?
> >
> >As Always, TIA
> >
> >Joe Johnson
> >
> >
> >~~ JEJ ~~ ;{)
> >
> >__________________________________________
> >$14.95 a month Unlimited Internet Access.
> >Get your first month for $1.00.
> >http://www.surfree.com/promo
>
>
> _______________________________________________________________
> Get Free Email and Do More On The Web. Visit http://www.msn.com
~~ JEJ ~~ ;{)
__________________________________________
$14.95 a month Unlimited Internet Access.
Get your first month for $1.00.
http://www.surfree.com/promo