Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a class from a form
Message
 
To
05/06/2001 22:13:35
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00515316
Message ID:
00515731
Views:
12
This will work with a container.
set classlib to MyClassLibrary additive
thisform.addobject('oContainer','MyClass')
thisform.oContainer.visible = .T.
>I posted the following message in a thread earlier tonight.
>Hi. The following code crashes when it reaches the .show command. I am using it in the click event of a command button in a grid (w/ no control source):
>
> MyObject = createobject('MyClass')
> MyObject.show(1)
>
> Error on show line: Unknown Member MYOBJECT
>
> Erik Moore asked if MyClass was a form. The answer is that it is a container class, and not a form.
>
> thanks, Randy
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform