Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlsource Function problem!
Message
From
17/11/1998 10:11:44
 
 
To
16/11/1998 20:16:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00157773
Message ID:
00158210
Views:
18
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")
------------------------------------------------
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
Next
Reply
Map
View

Click here to load this message in the networking platform