Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO FORM, but then it won't release?
Message
De
15/02/2013 19:51:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01566153
Message ID:
01566214
Vues:
48
>>>This is an old-school PRG application and I simply want it to call a form. So I have the calling .PRG doing this:
>>>
>>> DO FORM Programs\CourtSt NAME frmCourtSt LINKED
>>> RELEASE frmCourtSt
>>>
>>>The form has
>>>.Activate - READ EVENTS (which indeed does 'activate' it nicely.)
>>>.Unload - CLEAR EVENTS
>>>
>>>But then it won't go away when I "X" it. It appears to remain active and will still do stuff. If I click outside the form's area, it will then disappear but maybe it's not gone because the calling .PRG doesn't resume. Session is whacked.
>>>I know I'd done something similar about a decade ago once I'd figured every little snitty item. lol Drag.
>>
>>This sounds like a case where you have created some reference to the form in your program. That is you might have created a var such as oForm = Thisform and oForm still exists in your prg. You must release it before the form will go away.
>
>Well, this is an old app and it has no other calls to forms and no references to the form I'm struggling with other than the sample code above -- I tried the NAME formname LINKED option so that I could explicitly release the formname but I suspect it's not returning from the form. I'm going to trace into the .PRG and 'Step Over' the form a see if it comes back... I'm thinking the form is not getting to the .Unload CLEAR EVENTS. But thanks for the pointer anyway John!

Put Read Events in your Begin.prg but below the point where Begin branches to the Mainform so that Read Events is never executed. It just has to be there.
Put Clear Events in the General options of the menu.
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform