Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CREATEOBJECT vs DO FORM.. NAME..
Message
De
16/04/2007 02:40:36
 
 
À
16/04/2007 02:24:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01215967
Message ID:
01216121
Vues:
15
>I do have an array that holds object references to each form that opens.

>ofrmCustomerDataEntry = CREATEOBJECT( "frmCustomerDataEntry" )
>ofrmCustomerDataEntry.Show()
>The above will just see the form appear and disappear right away.

Now where is the array you store that reference?

If ofrmCustomerDataEntry is a local var, it will get out of scope right away, leaving no reference stored to the form, which leads to it's destroy.

Take a look at the help on DO FORM. It says in the section about NAME: "...If you don't include LINKED, a form can still be active, even though there is no object variable associated with the form."

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform