Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keep Focus on Text Field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Keep Focus on Text Field
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01380581
Message ID:
01380581
Vues:
101
The Code below is in a txt.LostFocus()

If the user gets an error I need to stay focused on that text

How is that done??


IF !INLIST(UPPER(ALLTRIM(this.Value)),'YES','NO')
=MESSAGEBOX('Invalid Data : Must be YES or NO',0 + 16,'Invalid Data')
this.Value = ''
******************************
*-- I NEED TO ADD CODE HERE TO KEEP FOCUS ON THIS TEXT FIELD
******************************
ELSE
thisform.Calculate()
ENDIF
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform