Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to refresh buffer data?
Message
De
05/09/1998 15:04:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
03/09/1998 09:46:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00132146
Message ID:
00133595
Vues:
16
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform