Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Here's something I should know ...
Message
From
09/02/2002 17:24:55
 
 
To
09/02/2002 16:40:19
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00617913
Message ID:
00617917
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform