>>I have feeling that you should utilize Main.Prg with READ EVENTS there. You can try also to move READ EVENTS to another Login form event (unload?), but I'm not sure here. Maybe someone who used to start app with form will help you.
>
>So, I should do the following:
>
>create main.prg which includes all the startup stuff like global memvars, opening of files, etc. include read events here. then do form login.scx for password routine and if OK, do form mainmenu.
>
>Sounds so simple - I will give it a try.
>
>thanks for all your help.
Ok. You may also consider some improvements:
1. It's better to replace global variables with application object properties.
2. It's normal to open tables (you may still open DBC in Main.Prg) using DataEnvironment(s). If you plan to have common DE for whole application, then you may use MainForm.DataEnvironment
Edward Pikman
Independent Consultant