Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SetFocus Question
Miscellaneous
Thread ID:
00265603
Message ID:
00265603
Views:
60
I,m using a LostFocus Event of a TextBox to test to see if the data entry is valid. If it is not valid I pop up a MessageBox then setFocus back to the original TextBox. It's not working. The focus goes to where it would have gone had I not tried to capture it.

Seek AllTrim(ThisForm.txtTypeCode.Value)
If Not Found()
MessageBox("Invaild Entry")
ThisForm.txtTypeCode.SetFocus
Else
ThisForm.txtTypeDesc.Value=Type2.Desc
EndIf
Thisform.Refresh

Any help?

Thanks
Alan Trosky
MIS Director
Pennsylvania Bar Association
Harrisburg PA 17108
Next
Reply
Map
View

Click here to load this message in the networking platform