Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to instantiate a form class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01110219
Message ID:
01110817
Vues:
19
>
>oMyForm = NewObject('MyFormClassName','Drive:\Dir\MyClassLibName.vcx')
>oMyForm.Show()
>
>
>HTH

I've found that hardcoding a full path for the classlib is bad practice. Once the app is built and deployed, if the user can't access that path, the app can slow down LOTS.

The full path isn't required once your app is buillt, all of the classllibs are in the exe, so just setting up your path in VFP while developing is much better. It also lets you move your project without having pathing problems.
Cheers,
Jamie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform