Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with simple Evaluate
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00594153
Message ID:
00594170
Vues:
29
Hi Gerald/Randy,

Try it one of these two ways:
EVALUATE( "acomp.TaxRate" + m.Store )
or
EVALUATE( acomp.TaxRate&store. )
My guess is that VFP probably thinks that TaxRate is a function or some such because of the second set of parentheses inside the EVALUATE command.

>>This expression is simple, but it gives me an error
>>in both VFP 6 & 7
>>
>>?EVALUATE(acomp.TaxRate(m.store))
>>
>>where m.store = '1'
>>and acomp.TaxRate1 is a field that holds a numeric value
>>
>>Thanks, Randy
>
>If TaxRate is a field, you cnat call it like a method with "()"...
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform