Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to instantiate a form class
Message
 
 
À
04/04/2006 08:43:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
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:
01110238
Vues:
16
>>Hi all
>>
>>I create a classe base on form , I would want instanced it .
>>Help please
>>
>>Best regards
>
>I will assume your form class is called cSampleForm, and is saved in class library MyClasses:
>
>
>set classlib to MyClasses
>local loForm
>loForm = CreateObject("cSampleForm") && The form is not yet visible
>loForm.Show()
>
You can also use NewObject function

loForm = NewObject('cSampleForm', 'myClassLib.vcx')
loForm.Show()
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