Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus() behavior question
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SetFocus() behavior question
Miscellaneous
Thread ID:
00303511
Message ID:
00303511
Views:
50
I have a grid where I am validating the data in the BeforeRowColChange event when the user tries to exit the row. One of the cells being validated is the default text box containing the quantity desired. If the user forgets to enter the quantity, the validation code generates a reminder window, then does:
THIS.grcQty.grtxtQty.SETFOCUS()  && return to cell required
NODEFAULT                        && don't allow row change
The problem is that afterwards, the textbox is SELECTED, not just entered. The box is highlighted, and keystrokes don't appear unless the user exits the textbox and re-enters it.

The .selected property of the textbox is still at the default .F..

Can anyone tell me why this is happening, and how to fix it?

Thanks,
Neil Preston
Next
Reply
Map
View

Click here to load this message in the networking platform