Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another try, classes
Message
De
30/06/2004 19:20:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00919427
Message ID:
00919430
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform