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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement