Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlsource Function problem!
Message
De
18/11/1998 09:28:44
 
 
À
17/11/1998 20:24:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00157773
Message ID:
00158725
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform