Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with simple Evaluate
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00594153
Message ID:
00594170
Views:
23
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform