Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stop page change in a pageframe during a lostfocus??
Message
De
15/08/2000 15:59:09
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00405163
Message ID:
00405176
Vues:
24
Jim,

Would it work if I put it in the VALID of the txtName? The only problem I see with that is the INVALID INPUT
message box that shows up.

Pete




>Peter,
>
>LostFocus has a base class behavior fo moving focus. You need to stop that behavior if you are setting focus somewhere. Change your code to this;
>
>
>WITH This
>   IF Empty( .Value )
>      * Relative addressing is more portable as it is name independant
>      .Parent.Parent.activepage=2
>      * Put focus on this same control
>      .setfocus()
>      * Stop the base class behavior
>      NODEFAULT
>   ENDIF
>ENDWITH
>
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform