Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to SetFocus?
Message
From
10/12/1999 11:19:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00301727
Message ID:
00301744
Views:
33
Correct. For example, let's say it was a textbox for numeric values and you didn't want the textbox to lost focus if the value entered was greater than 10. You would have the following code in the Valid:
IF This.Value > 10
   WAIT WIND "Bad value...baaad value!" NOWAIT
   RETURN .F.
ENDIF
>I am not sure I understand.
>
>My code is in the Valid Event. But are you saying to change my RETURN command to RETURN .F. instead of RETURN? And not use a SetFocus command at all?
>
>Please explain a bit more. Thanks.
>
>Steve Kramer
------------------------------------------------
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
Reply
Map
View

Click here to load this message in the networking platform