Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another try, classes
Message
From
30/06/2004 19:29:45
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00919427
Message ID:
00919434
Views:
16
>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

You're also confusing your terminology a bit. A class library is a repository for your classes, it is not a baseclass.

So did you create a pager.vcx that has in it a "Hello" class that's based on custom? If so, you still need some kind of method on your Hello class to do something.

So what you have is a PAGER.VCX class library (a .VCX and .VCT is simply a VFP data table, just like a .DBF and .FPT)

That classlibrary contains a class "Hello" based on the VFP baseclass "Custom".

Your hello class has on it some PEMs (Properties, Methods and Events). You can add your own custom PEMs to do anything you need the class to do.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform