Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I call a METHOD from a procedure ?
Message
From
15/04/1998 15:12:00
 
 
To
15/04/1998 15:06:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092218
Message ID:
00092238
Views:
22
>>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform