Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CREATEOBJECT vs DO FORM.. NAME..
Message
 
 
À
16/04/2007 02:24:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01215967
Message ID:
01216177
Vues:
16
>Naomi,
>
>I do have an array that holds object references to each form that opens.
>
>It works quite well I must say, but not when I issue
>
>
>ofrmCustomerDataEntry = CREATEOBJECT( "frmCustomerDataEntry" )
>ofrmCustomerDataEntry.Show()
>
>
>The above will just see the form appear and disappear right away.
>
>It works well if I use my 'old' way of:
>
>
>DO FORM frmCustomerDataEntry NAME ofrmCustomerDataEntry
>
>

If you have an array, you should store the reference in the array, e.g.
lnI = alen(oFormMgr.aForms,1) + 1
oFormMgr.aForms[lnI] = ofrmCustomerDataEntry
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform