Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keep Focus on Text Field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Keep Focus on Text Field
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01380581
Message ID:
01380581
Views:
100
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
Next
Reply
Map
View

Click here to load this message in the networking platform