Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.SETFOCUS
Message
From
05/11/1998 22:49:54
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
.SETFOCUS
Miscellaneous
Thread ID:
00155099
Message ID:
00155099
Views:
63
After a simple test fails on a form, I want the focus to stay on the field/control it is currently on. So I thought I would use:

thisform.xxxxx.setfocus

which seems to work fine in some instances and not in others. Specifically, if that code is used in the LOSTFOCUS event it is ignored.

The control is visible and active.

Originally I had the code in the VALID event but VFP informs me that .SETFOCUS can not be used in VALID.

I can only get .SETFOCUS to function as I expect from buttons.

Ideas???
Next
Reply
Map
View

Click here to load this message in the networking platform