Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to instantiate a form class
Message
 
 
To
04/04/2006 08:43:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01110219
Message ID:
01110238
Views:
17
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform