Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a Method from an inactive form
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00512457
Message ID:
00512786
Views:
8
One method is to executable the following code

do form Form1 noshow. This will run the form without displaying.
?Form1.PrintMe I created a method called Printme which prints some text.

Ideally, you should move the code from the form into a class or prg. It sounds as if this form method has muliple uses. If this is the true, I would move the form method into a class and update the form to call the newly created class.

>I want to use a method from an inactive form. How do you I call this method from a PRG file?
>
>Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform