Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to refresh buffer data?
Message
From
03/09/1998 09:46:02
 
 
To
03/09/1998 09:13:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00132146
Message ID:
00132751
Views:
14
Hi Dragan ---

>Inlist sounds like calling for trouble (what if in VFP7 we have a jukebox or any other newbox class).... mmm, why not do like this:
>
>oTempControl=_screen.activeform.activecontrol
>oTempControl.SetFocus
>_screen.activeform.SaveTheRecord
>
> I don't know for sure if losing focus first is necessary for the control.value to be written into alias.field, but I seem to remember that gaining focus is sufficient. If this works, we don't have to take care of the control's class.

Hmmm...the problem stems from toolbars and menus not respecting the fact that the form has lost focus and hence the control has not lost focus. Have you tried this code?
------------------------------------------------
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