Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling one form from another
Message
 
 
To
03/09/2002 08:43:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00696163
Message ID:
00696213
Views:
9
Make your Password form modal and call from your main program. When user enters the password and then clicks on the OK button, Password form returns logical value that indicates if login was succesfull. In case of succesful login, Launch Main Processing Form with Read Events from main program. This way your two forms became independent of each other.

>Hi,
>
>I have setup a project in VFP that contains a number of tables, 2 forms, 1 report and 1 program.
>
>To run the application the main program is executed which calls the Password Form. A Read Events statement is issued straight after the Do Form command.
>
>The user inputs the password and then clicks on the OK button.
>
>This calls the Main Processing Form with a Read Events statement straight after the Do Form command. Once the user has finished in this Form and clicks the Exit button, this issues a Clear Events statement which should take the code to the point straight after the Read Events in the Password Form. The code after this just releases the Password Form and returns control back to the Main Program.
>
>My problem is that I cannot get the Password Form to Close Down after every execution. When I try to modify it a message "file in use.." appears.
>
>Can anyone help me get the correct syntax I should be using when issuing Read and Clear Events?
>
>thanks,
>
>Jason Lawrie
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform