Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus causes form not to be released
Message
From
18/10/1998 12:04:55
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
18/10/1998 11:09:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00147937
Message ID:
00147942
Views:
16
>I want to use the setfocus method to set focus to a control on a page.
>When using setfocus the form (when closed) stays in memory.
>This problem occurs when applying a setfocus() in the activate page event from a pageframe. When using setfocus() within the method AfterRequery (from ebizobjform..) the problems also occurs. I want to use setfocus in afterrequery to set focus to the first item in a picklist or when no items avail to the first control of the searchcontrols or when only one item to set control to the next page in the pageframe.

I don't know of any problem with SetFocus() causing a form not to close. Normally it's a object reference that's not released. Also there's the IF TYPE("something") = "O" AND PEMSTATUS() on the same line that can cause the form to hang.
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform