Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlsource Function problem!
Message
From
18/11/1998 09:28:44
 
 
To
17/11/1998 20:24:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00157773
Message ID:
00158725
Views:
15
I wouldn't do that for the simple reason that calculations that can be managed (you know everytime they are done) are non-optimal in Refresh() because the calculation is run unnecessarily on every Refresh and this could degrade performance if you have a lot of that sort of thing.


>>Hi ---
>>
>>In the Init of the TextBox, put:
>>
>>THIS.Value=100-(database.field*100)
>>THIS.Refresh()
>>
>>In the LostFocus of the TextBox, put:
>>
>>REPLACE database.field WITH 1.00-(THIS.Value*.01)
>>
>>Do not set a ControlSource for the Textbox, and make sure that you have your InputMask set the right way (probably "999")
>

>
>THanks! ^_^;
>
>I would put the init() coding into refresh() procedure!
>Then, no need to refresh!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform