Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying calculated field in a form
Message
 
To
12/08/2005 13:50:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040587
Message ID:
01040591
Views:
10
John,

Try "m.calcweight = use_size*use_size*blunt*.222".
Or thisform.Pageframe...calcweight.value = use_size*use_size*blunt*.222

>Hi all,
>
>I have a form that is to return a calculated weight. The way I have it set up is obviously wrong, as it's returning the following error message:
>
>"CALCWEIGHT is not an object"
>
>Here's my setup:
>
>In the Refresh method for the Frame that Calcweight is on:
>
>"calcweight=use_size*use_size*blunt*.222"
>
>The field itself has the ControlName of "calcweight" and the Name "calcweight."
>
>In the InteractiveChangeEvent for the fields that affect the calculated value (use_size and blunt), I've got:
>
>"thisform.refresh"
>
>Anytime I change use_size or blunt, I get the error message above.
>
>What am I doing wrong?
>
>Thanks very much!
>
>John
Previous
Reply
Map
View

Click here to load this message in the networking platform