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]

Reply via email to