Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Here's something I should know ...
Message
De
09/02/2002 17:24:55
 
 
À
09/02/2002 16:40:19
Charles Richard
Nvo Management Systems
Boisbriand, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00617913
Message ID:
00617917
Vues:
21
>I have a very basic form where the keypress event traps ctrl+up or down arrow to skip records. On this form are fields for editing data. When I type information in the field and do a ctrl+arrow without first exiting the field, the data is not written to the field. What is it I have to do in order to force the data to be written (a form.refresh does nothing)?
>
>Thanks in advance

Have the control you're currently in lose focus. My prefered method is _VFP.ActiveForm.ActiveControl.SetFocus(). As you can see, it doesn't matter that the control regains focus afterward - as long as it loses it!

It won't work if the active control is a grid, though! In this case, either you SetFocus() to another object or to another column.

HTH! (JQCA - J'espere que ca aide! ?!?!? Nah, on va rester avec HTH!) :)
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform