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

Click here to load this message in the networking platform