Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Previus form
Message
 
 
To
23/09/1998 18:10:09
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00140087
Message ID:
00140298
Views:
21
>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

In the form Load event, you can check for:

if type("_screen.activeform.baseclass") = "C"

If that is TRUE, then another form called this form. The called form is not the active form until the Activate(). You can then set a variable:

oForm = _screen.activeform

If necessary you can test, if oForm.Name = "Form1_Name" ...
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform