Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't make forms go away
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096713
Message ID:
00096715
Views:
13
Pete,

Your login form won't be released until the click event of the button completes. I assume the reports form is modal, so execution of the login form's OK button click event waits at the DO FORM Reports. You could call the login form from a main program and have the form return .T. if the user successfully logs in. If you get the .T. return value, run the reports form from the main program.

>   It seems the harder I work the dumber I get. As a newbie to vfp, I'm having a dickens of a time getting the hang of visual/oop.
>   I've created a couple of forms, starting with a LOGIN. When the user clicks on the OK button, the click event does a
THISFORM.RELEASE()
>DO FORM REPORTS
>The REPORTS form comes up all right but the LOGIN form is still there hiding underneath. Calling another form puts that one on top of this one.
>   I seem to have missed something very basic here. Is this normal behavior of forms, or as is more likely, am I exhibiting my ignorance again. I can find all kinds of info for opening forms, but almost nothing on closing them. Could someone please help?
>TIA
>Pete
Previous
Reply
Map
View

Click here to load this message in the networking platform