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:21:05
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01155368
Message ID:
01155438
Views:
39
>Hi Fabio
>
>I put in wait windows at all the points you mentioned
>
>>? type( THIS.CheckSource )
>C
>
>>? vartype(poText)
>O
>
>> ? message()
>Nothing happended, the code went on to execute further
>
>
>WAIT WINDOW type( THIS.CheckSource )
>WAIT WINDOW  vartype(poText)
>*try
>***===> evals okay
>cContents = EVALUATE(THIS.CheckSource)
>*catch
>* WAIT WINDOW  message()
>*ENDTRY
>
>cSource   = THIS.CheckSource
>***===> macros okay
>cContents = &cSource.
>
>cSource   = THIS.CheckSource
>***===> evals fails
>cContents = EVALUATE(cSource)
>
>
>So I guess coming via into variables it does have a problem. Thanks I guess this solves the problem, or raises more questions?
* try
cSource   = THIS.CheckSource

cContents = EVALUATE(m.cSource)

* post
? FSIZE("cSource")=0 && check fields name not exists
? [cSource]=="cSource" && check include preprocess not exists
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform