Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spellbound - EVAL() in VFP6 needs to be macroed in VFP9?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01155368
Message ID:
01155378
Views:
26
>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.

Try to debug why this happens:
SET ASSERT ON
cSource   = THIS.CheckSource
TRY
   cContents = EVALUATE(cSource)
CATCH
    ASSERT .f.
ENDTRY
And check if poText is avalible.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform