Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus causes form not to be released
Message
De
19/10/1998 12:59:44
 
 
À
18/10/1998 12:04:55
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00147937
Message ID:
00148182
Vues:
21
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform