Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spellbound - EVAL() in VFP6 needs to be macroed in VFP9?
Message
From
20/09/2006 07:02:51
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01155368
Message ID:
01155434
Views:
37
>Hi all
>
>Maybe I am wrong on this but the following line in Spellbound class raises an error in VFP9 during EVAL(). I am not sure as this class is used infrequently by a client in the VFP6 version of my app but I believe it is still working on his end.
>
>
cSource   = THIS.CheckSource
>cContents = EVALUATE(cSource)
>
>THIS.CheckSource = "poText.VALUE", poText is a PRIVATE object available in DoCheck() of the class SpellBound. In VFP9 I constantly got the error:
>
Error #:    152
>Message:    Missing expression.
>Line #:     21
>Code:       cContents = EVALUATE(cSource)
>Method:     docheck
>Object:     afrmdetpackinglist1.pgf.txtCbk
>
>Now as soon as I changed the line to cContents = &cSource. all is working well.
>
>Please advise.

POST the 3 output
? type( THIS.CheckSource )
? vartype(poText)
try
cContents = EVALUATE(THIS.CheckSource)
catch
 ? message()
endtry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform