Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate() Problem
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Evaluate() Problem
Divers
Thread ID:
00768800
Message ID:
00768800
Vues:
44
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform