Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need opinion/advice about instantiating forms
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01070570
Message ID:
01070583
Vues:
43
Hi Marsha -
Thanks for your response. Sorry for the typo. I meant to say:
loForm = NEWOBJECT( "DateEntry", "C:\Developement\Myforms.vcx" )

Is there a reason why I would want to instantiate a form class rather than an SCX or the other way around? Is there more overhead involved using DO FORM rather than NEWOBJECT() ?




>loForm = NEWOBJECT( "DateEntry", "C:\Developement\Myforms.scx" )
>
>You cannot do this. It will give you an error that says "Myforms.scx is not an object file". The only way you can instantiate a form as SCX is by using the DO FORM command.
>
>loForm.Visibile = .t.
>
>If you are instantiated a form class (form as VCX), you should callthe form's Show() method rather than setting its visible property to true.
>
>In what scenarios would I choose one method of the other.
>
>You must use NewObject() or CreateObject() to instantiate a form class.
>
>You must use DO FORM to instantiate a form as SCX.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform