Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling one form from another
Message
From
04/09/2002 11:34:35
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00696163
Message ID:
00696640
Views:
10
Sergey,

Here is the code to the Main Program:

Public llOptionForm

llOptionForm = .F.

Do Form password.scx
*Read Events

If llOptionForm
Do Form tvlink.scx
Read Events
Endif

Close data all

Return

What seems to be happening (I have debugged the code) is that when it accesses the code "DO FORM tvlink.scx" it processes through the Form Methods then it still seems to sit on the "Do Form..." command.

The form is displayed to the screen, when I click on the Exit button, this calls the Release Method with in turns calls the Destroy Method. This method executes the Clear Events statement then Returns control back to the Main Program.

But in the Debug Window, the line pointer is pointing to the Read Events command.

The Password Form is OK, even without the Read Events.

Do you know what I am doing wrong?

thanks,
Previous
Reply
Map
View

Click here to load this message in the networking platform