Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluating profile logic
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134150
Message ID:
01134162
Views:
22
>>Why EVALUATE()?
>>Why not direct test?
>>? between(Trans.cProduct_Line_Code,"100","200")
>
>How can I test directly if I have this information in the memo field of my table (Employee_Queue_Profiles)?
>
>In other words I have
>
>lcLogic = alltrim(Employee_Queue_Profiles.mFilter_Logic)
>
>if not empty(m.lcLogic)
>   =seek(m.tcTrans_fk, 'Trans', 'cTrans_pk')
>  llReturn = evaluate(m.lcLogic) && here it bombs
>endif
I'm thinking I would have to create a procedure and return code using ExecScript.

e.g.
private plReturn
text to lcProc noshow textmerge
    =seek(<<m.tcTrans_fk>>, 'Trans', 'cTrans_pk')
    plReturn = <<m.lcLogic>>
endtext
Would my plReturn visible and how can I return it?

BTW, for now we decided to fix all our profiles instead.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform