Alan,
>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.
* set global memvars
do form login
read events
Your login form will then have to launch the rest of the app (do form mainmenu) once they successfully get logged in