Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate() Problem
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Evaluate() Problem
Miscellaneous
Thread ID:
00768800
Message ID:
00768800
Views:
45
I had the following two properties set as follows:

This.cWhereBase="PID=' '.Or.PID$This.cOpenNodes"
This.cWhereUser=".T."

The following code fails with an error message (Function argument value, type or count is invalid.):

Scan While .T. for Evaluate(This.cWhereBase+".And."+This.cWhereUser)

However if I change This.cWhereUser as follows everything works fine:

This.cWhereUser="1=1"

In the first case in the debugger evaluate(This.cWhereUser) returns at character type expression of '.T.' when I expected a logical value.

Is this a bug or just the way the evaluate function works? It seems like it did not evaluate the ".T."

Thanks
Simon
Simon White
dCipher Computing
Next
Reply
Map
View

Click here to load this message in the networking platform