Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus in Valid
Message
From
12/12/2000 10:18:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00452195
Message ID:
00452205
Views:
15
>Hello people,
>
>I have to put "ThisForm.Button1.SetFocus" in a Valid like this:
>
>... Code Part A ...
>ThisForm.Button1.SetFocus
>... Code Part B ...
>
>But it's generate a error message...
>
>Anyone could me help?...
>
>I'm using VFP 5.0!
>
>Regards,
>
>Rodolfo Duarte
>Brazil

Rodolfo,
Move your valid code to lostfocus :
if llCannotLeave && Shouldn't lose focus -like valid returning .f.
  nodefault
else
*....
ThisForm.Button1.SetFocus
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform