Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to refresh buffer data?
Message
From
05/09/1998 15:04:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/09/1998 09:46:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00132146
Message ID:
00133595
Views:
18
>>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?

That's why I said "why not try like this" - I don't use toolbars. It was one of the first things I've learned here on the UT, that the control doesn't lose focus when you click on the toolbar, thus it's still the active one, and could/should be refreshed. This issue was addressed by someone who tried it... about ten to twelve months ago. Couldn't actually take the time to do a search, we're having a little rain over here, and my phone line breaks in five minutes...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform