Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with SetFocus
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00052740
Message ID:
00052753
Views:
34
>Hello guys, I know that in 5.0 I can not call SetFocus
>from within a "When","Valid" or some other methods, but
>I am calling setfocus from the click event of a button
>and I am having the same error:
>"SetFocus can not be called from When,Valid..."
>Is there any other condition that I am missing ?
Luis,

I just created a from and put a textbox and command button in it. In the button's click I wrote, THISFORM.Text1.SetFocus() and when I ran the form and clicked the button focus went to the textbox with no errors.

I am using VFP 5.0a.
Previous
Reply
Map
View

Click here to load this message in the networking platform