Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using eval and dot notation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00366714
Message ID:
00366742
Vues:
11
Same error "Function argument value, type or count is invalide" for all of these

? eval(patient.condition)
? eval(patient->condition)
? eval(condition)

>If you're getting the same error, I'd be willing to be that it has nothing to do with the dot notation. Did you try doing the EVAL on the command line and see what you get?

>>Same error
>>
>>>You could always do patient->condition...
>>
>>>>Mixing dot notation and macro expansion or eval() always trips me up.
>>>>In the "condition" field of the patient table is a logical expression that I want to evaluate to .T. or .F. Note: I need to refer to both the table and name since in my actual code there are two tables.
>>>>
>>>>select patient.name from patient where eval(patient.condition)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform