Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I call a METHOD from a procedure ?
Message
De
15/04/1998 15:12:00
 
 
À
15/04/1998 15:06:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00092218
Message ID:
00092238
Vues:
23
>>>>>How do I call a METHOD from a procedure ?
>>>>
>>>>It entirely depends on way you store form references in your app. As long as you can retrieve the reference you use it to call form method:
>>>>oApp.oFrmCopy.Copyeverything()
>>>---Hi Ed
>>>I have a class called HELPDESK_MAINTFORM. In this class, I have a
>>>METHOD called CLEARQUERY. How would I run the CLEARQUERY from a procedure?
>>>example...HELPDESK_MAINTFORM.CLEARQUERY()
>>
>>It doesn't matter what class you have. What is really matter here is how you instanciate the object from this class in your application: the object (not class) reference must be used.
>---
>Can you give me a code sample of how to instanciate the object please.

oApp.frmCopy=createobject("frmCopyclass")
and now you can call a method:
oApp.frmCopy.Custommethod
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform