Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login Screen
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00279791
Message ID:
00279942
Views:
25
>>Hi,
>> Nice to meet you. What is your company name?
>> Yes, I tried to DO FORM frmLogin in frmMain before, but still the same result....
>
>It can work, but you may need to change a few things. As said, launch the login form as a child from the Main form, but not until late, the form Activate. Then if the login is bad, Release the Child form, and do the CLEAR EVENTS from the Main form. I do approximately this, and it works fine.

John,

Bruce has given you a fine solution to your question. But you might consider another approach, which is to create a Top-Level Login form and run it with a READ EVENTS after DO FORM MyLogin or oLogin = Createobject(...) however you do it. Then CLEAR EVENTS in the Login form when the user closes it. Then based on the outcome of the user login, I either bail them out or do my application setup and make the desktop visible, which for me is _SCREEN. Just another possibility for you to consider.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform