Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling methods in one form from another
Message
From
16/06/2005 07:15:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows Millenium
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01023793
Message ID:
01023868
Views:
12
>Is there any way to call a method in one form from another without including both forms in a formset?

Hilmar's explanation is correct.

In addition, here is a tip. Form references are one of the few things that I want to be global (by declaring them private in the main program). The main advantage is that they can then be used in the SKIP FOR clauses of the menus. It goes like this:

Main program:
private goMainForm, goSecondForm
store NULL to goMainForm, goSecondForm
Declare the main form:
do form mainform name goMainForm
At times the second form is declared:
do form secondform name goSecondForm
Perhaps there is a check in the main form's menu:
SKIP FOR not isnull( goSecondForm )
Get the picture?
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Reply
Map
View

Click here to load this message in the networking platform