Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sometimes I can't close a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00381579
Message ID:
00381706
Vues:
14
>>>>You may not want to, but have you tried CLEAR ALL?
>>>
>>>ROFL! When I read it I was wonder "why wouldn't I want to?" so I tried. Locked up vfp completely. Had to end the task.
>>
>>Well, if you're like me, you may have had some variable set for testing purposes and you'd lose them. The problem sounded like you had a dangling object reference to the form or something on the form. For example, if you place the mouse pointer over a control on the form and issue ox = SYS(1270), you won't be able to close the form because there's still a reference to the control held by the ox variable. Once you ox = NULL, it'll then close. CLEAR ALL would have the same affect.
>>
>>Sorry, Alex.
>
>Hi George and Alex,
>
>I have the similar situation and sometimes, if I encourage an error or just go to command window or debug, I can not close my form after that (the form has close button, but isn't closable). I hit on Close button and nothing happens. So, the question is, is it possible to close a form after normal process termination without going to application menu - Exit (not the Fox system menu)?

Nadya,

As I explained to Alex, usually these problems are caused by a dangling reference to an object. You can test this using the information I supplied. In these instances, CLEAR ALL may release the reference. However, it is possible, as happened with Alex, that this may result in VFP locking up.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform