I set all local form variables in the "On Before Start" EEP and clear all
variables in the "On Close" EEP; in most cases, you can cut your defined
variables in the "On Before Start" EEP and paste them on the "On Close" EEP
so you don't have stray variable causing problems down the line.
Javier,

Javier Valencia, PE
President
Valencia Technology Group, L.L.C.
14315 S. Twilight Ln, Suite #14
Olathe, Kansas 66062-4578
Office (913)829-0888
Fax (913)649-2904
Cell (913)915-3137
================================================
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material.  Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from all system and destroy all copies.
======================================================

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Dawn Oakes
Sent: Wednesday, February 16, 2005 12:00 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Re: Property problems

That's a good point.  I agree mostly, I always do in cursor loops.  It's
easier to debug if there's a problem and if I remember correctly, it
wouldn't be optimized if I were to change the variable type in the
middle of while loop.  Honestly though, if I'm not going to need the
actual value as text for something else - say as part of a pause message
later in the code - I generally re-use the variable name. 

-----Original Message-----
From: Albert Berry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 12:36 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Re: Property problems

Dawn, this retyping of variables may not be a good idea. If you do this
inside a loop you can end up in trouble. I have taken to defining two
variables, one for the text return and another for the actual datatype.
Other than that my code would be identical

SET VAR vpTestText TEXT = NULL
Set var vptest CURRENCY
Getproperty chpriceID textvalue 'vptestText'
Set var vptest CURRENCY = .vptest
PROPERTY ptestid textvalue .vptest

--- Dawn Oakes <[EMAIL PROTECTED]> wrote:

> Here's what I suggested David.
>
> >>Set var vptest text = null
> Getproperty chpriceID textvalue 'vptest'
> Set var vptest CURRENCY = .vptest
> PROPERTY ptestid textvalue .vptest
>
> To convert the text variable to the data type of the field receiving
> the property command.
> Dawn
>
> -----Original Message-----
> From: David M. Blocker [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 16, 2005 9:41 AM
> To: RBG7-L Mailing List
> Subject: [RBG7-L] - Re: Property problems
>
> What solution did you find? I didn't see Dawn's solution she sent -
> (sometimes my email gets swallowed up somewhere and never makes it
> here...) Your code looked fine to me.
>
>
> David Blocker
> [EMAIL PROTECTED]
> 781-784-1919
> Fax: 781-784-1860
> Cell: 339-206-0261
> ----- Original Message -----
> From: "Marc" <[EMAIL PROTECTED]>
> To: "RBG7-L Mailing List" <[email protected]>
> Sent: Wednesday, February 16, 2005 9:16 AM
> Subject: [RBG7-L] - Re: Property problems
>
>
> > David
> >
> > I do have the IF my EEP, I just can't cut and paste sometimes!
> >
> > Marc
> >
> > ----- Original Message -----
> > From: "David M. Blocker" <[EMAIL PROTECTED]>
> > To: "RBG7-L Mailing List" <[email protected]>
> > Sent: Wednesday, February 16, 2005 7:51 AM
> > Subject: [RBG7-L] - Re: Property problems
> >
> >
> > > Mark
> > >
> > > It's a small thing and I don't think it would account for the
> > > problem,
> but
> > > notice you're missing the word "IF" at the start
> > >
> > >  vtran = '2.' then
> > > set var vptest currency = $0.00
> > >
> > >       GETPROPERTY chpriceID textvalue 'vptest'
> > >
> > >       PROPERTY ptestid textvalue .vptest endif
> > >
> > >   RETURN
> > >
> > >
> > > David Blocker
> > > [EMAIL PROTECTED]
> > > 781-784-1919
> > > Fax: 781-784-1860
> > > Cell: 339-206-0261
> > > ----- Original Message -----
> > > From: "Marc" <[EMAIL PROTECTED]>
> > > To: "RBG7-L Mailing List" <[email protected]>
> > > Sent: Tuesday, February 15, 2005 5:15 PM
> > > Subject: [RBG7-L] - Property problems
> > >
> > >
> > > > Hi
> > > >
> > > > In an effort to track down my error I have reduced the EEP to
> > > > the
> below.
> > > > I have custnum, trdate, tran, chprice and ptest.
> > > > This eep is on Exit from chprice and I am trying to put the same
> number
> > > > in ptest.
> > > >
> > > > If I put 2 in tran (vtran) then -$5.00 in chprice and trace this

> > > > eep
> the
> > > > value
> > > > for vptest is like 14 trillion dollars!!!  What am I doing
> wrong???
> > > > Don't get me wrong I would love go get paid that much but....
> > > >
> > > > Marc
> > > >
> > > >  vtran = '2.' then
> > > > set var vptest currency = $0.00
> > > >
> > > >       GETPROPERTY chpriceID textvalue 'vptest'
> > > >
> > > >       PROPERTY ptestid textvalue .vptest endif
> > > >
> > > >   RETURN
> > > >
> > > >
> > >
> > >
> >
> >
>
>


=====
Albert Berry
Management Consultant
RR2 - 1252 Ponderosa Drive
Sparwood BC, V0B 2G2
Canada
(250) 425-5806
(250) 425-7259
(708) 575-3952 (fax)
[EMAIL PROTECTED]

<<attachment: winmail.dat>>

Reply via email to