Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Still release form question
Message
De
08/06/2001 12:53:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00516859
Message ID:
00517050
Vues:
22
>From form1 a call form2
>
> Thanks for opininos but I need that form1 is only released
> after form2 is released too.
>
>
> I've tried
>
> Do form1 to myform
> do form2
>
>From form2 I put
>
> release myform and form1 does not disapered
>
> What's wrong ?

"Do form1 to myform" will create an object reference not in variable myform, but in a variable with a probable name of form1. Variable myform will receive the value returned by form1.unload (if it's modal).

If you want to have a variable with a name of your choice, you should have

do form1 name myform

One thing to beware is the scope of the myform variable - you may want to make it public, or a property of a persistent object. If form1 is modal, this is no problem, but then you can't access your variable until the form exits - or hides.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform