Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with user defined functions
Message
 
 
To
24/01/2003 19:21:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00745324
Message ID:
00745348
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Ulises,

Assuming you are also displaying these new calculated results, you can just throw this code into the Form.Refresh(), then each LostFocus, just just do thisform.Refresh().

Bind your textboxes to form properties and you can simplify it even more:
sum importedd to thisform.xImpDD, costounit to thisform.xCostUnit ...
and you don't have to set each individual textbox.value

>I have this form with many calculated fields. Since the values of these fields are dependent upon values of several other fields, which can be modified at will by the user, I have the same lines of code repeated over and over in the Lostfocus event of these fields. So I have this code repeated about 7 or 8 times in my form:
>
>SUM importedd TO xImpDD
>THISFORM.text2.VALUE=xImpDD
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform