Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another try, classes
Message
From
30/06/2004 19:20:45
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00919427
Message ID:
00919430
Views:
22
>I have a project, Using the project manager, I have created a new class called pager.vcx
>Next, I seleted the pager class. Then clicked on "new", and created another class,
>this called Hello, custom class, and stored in the pager bass class.
>The code in the int of Hello() is
>wait wind "hello "
>
>Now how do I call Hello() from a program? How do I do this? I have tried
>
>SET CLASSLIB TO c:\page0\pager
>CD c:\page0
>pager.hello()
>
>But the program does not know what hello() is ????
>Thanks
>Steve Elster

All you've done is set your class library so that your class can be found.

Try this:
SET CLASSLIB TO C:\page0\pager
oPager = CREATEOBJECT("Pager")
oPager.Hello()
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform