>Hi,
> Yes, It is OK to run my login form in main program. But how about user logout from my application and click CANCEL button? The problem will come back!!!!
>
>Any ideas?
Without understanding how your application is structured I can't answer your question.
I'm not certain what process you mean by the user logout. You mean when they quit the application altogether? Or are you talking about if the login fails?
If you're talking about if the login fails you'd do something like this:
< set up environment >
DO FORM myloginform TO lSuccess
IF m.lSuccess
* Continue running application
ENDIF
RETURN
With this structure you can return a value from the UnLoad event of the form and it will be stored in lSuccess.
If you have other questions, I need further clarification.
-cjh