>>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.
Thanks.... Just being stuppid not to ask sooner on Universal. The problem was the fact I was using PEMSTATUS on the same line more than once. I was using PEMSTATUS to dril down all objects on a page to find the first control that would be in line to get focus. I just coded every PEMSTATUS statement on a single line and it works fine! Looking at the helptekst in VFP6 microsoft does comment on this problem.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only