Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a method to a form?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00895838
Message ID:
00895862
Views:
18
Steve,

At designtime:

You can drop an instance of the Hi class onto your form just like any other class from the forms toolbar. You can set the classlib via the books button on the toolbar, select Add and select your classlib. Or you can drag the class from the classlib in the project manager and drop it on the form.

At Runtime:

you can use the SET CLASSLIB and then use thisform.AddObject( "myHi", "hi" )

then you can call the method:

thisform.MyHi.Hi()

>If I put the same code that is wait wind "hi" and then save that to class "hi" of contacts.
>How do I call the class Hi from my form?
>
>Set Class Library to c:\ ....\ contacts && I realize I need this but how to call the class
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform