Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus Error
Message
 
To
17/02/1999 16:28:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00188643
Message ID:
00188650
Views:
23
Scott,
I had this problem once, too, when I called a method that called another method that had the SetFocus call. I think I had a SetFocus in the control's Init event, and later called that control's Init from within the Valid of another control. Pretty confusing - was tough to track. I would check your program flow.

Mark

>Greetings All,
>
>I have a form that has been working fine for several months. All of a sudden, an error message pops up that says "Cannot call Setfocus from within When, Valid, RangeHigh or RangeLow Event". I looked all over my controls, and there is no Setfocus call within any of these events. I have them in a command button's click event, and an Add_new method. I also have one in the Init event of the form.
>
>Can anyone shed any light as to why this would show up now when the user has been using the app for a while? This is the second time something like this has happened. The first occurence involved something else. This app was upgraded from VFP 3.0 to VFP 6.0 about 1-1/2 months ago.
>
>Thanks in advance.
>
>Scott
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform