Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to SetFocus?
Message
From
10/12/1999 11:04:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00301727
Message ID:
00301729
Views:
20
Put your code in the Valid event and RETURN .F. if you don't want focus to shift.


>I am having trouble with where to place my SetFocus command.
>
>I do the following commands to validate a user's textbox input:
>IF (some condition...) && This works
> WAIT 'INVALID TIME INTERVAL' WINDOW TIMEOUT 2 && This works
> RETURN && This works
>ENDIF
>
>After the error message is displayed to the user I want to SetFocus back to the same textbox, but I can't find the right spot to place the SetFocus command. I have tried it in numerous places, but the focus always goes to the next textbox in the tab order anyway.
>
>Any ideas? Thanks for the help.
>
>Steve Kramer
>Kramer & Kramer Design
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform