Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text Box Not updating properly.
Message
 
À
15/10/1998 16:48:06
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00147125
Message ID:
00147263
Vues:
31
>It works! It works! Thanks, now I just need to figure out WHY it works and I will be happy. :)

Calvin,

it wokrs because, a control does not update its controlsource until after its Valid fires. The Valid fire in the process of the control losing focus. The firing of the keypress event of the form does not move focus away from the current control, therefore you have to trivck VFP into thinking the control is losing focus, and you do that by telling it to put focus where it already is. By doing this VFP (dumb as it is) thinks the current control must first lose focus and so it fires the valid and updates the controlsource, then it simply puts focus back on the same control.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform