Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus after 3 forms
Message
 
To
01/03/2000 14:40:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00340014
Message ID:
00340021
Views:
23
>I have a command button i a form.
>This form is my fourth open form.
>In the click events i have this code
>thisform.text1.setfocus
>
>After clicking this command button i recieve this errormessage:
>Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event (Error 2012)
>
>1 - I have not used the setfocus method within a When, Valid, RangeHigh or RangeLow event
>2 - When this form is the third form i dont recieve this error.
>Thanks.

Cemal, did you try to trace it and track the events in both cases?

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform