Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Previus form
Message
From
23/09/1998 19:19:48
 
 
To
23/09/1998 18:10:09
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00140087
Message ID:
00140098
Views:
28
>I have 2 forms. Form1 and Form2. Form2 can be called from form1 or directly from the main menu. Inside Form2, can I know if it was called from form1 or from the main menu? Thanks

You can pass a parameter to the form when you call it, and then in the form's init, store the parameter to a form property.

DO FORM myForm WITH "Menu" && Or DO FORM myForm WITH "Form"

and then in form.init:

LPARA tcCalledFrom

THISFORM.CalledFrom = tcCalledFrom
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform