Cowboy_BeBa
Registered User.
- Local time
- Tomorrow, 07:48
- Joined
- Nov 30, 2010
- Messages
- 188
hi all
I'm building a login page, its Modal so cannot be clicked away
the basic login function works well (compares username and password entered with that in a table and, if all values are equal, opens a main menu form) as the login form is modal i had to set its visibility to false so that the user may interact with the main menu, which is not modal
now the code for the login page is in a seperate module (i just had the login button on the login form call a function from the module), i figured doing this by doing this (and by declaring the username string with "Public uStr as String") would create a global variable that i could use on all other forms
This does not seem to be the case (im testing it by having a message box on the form load event of the main menu "msgbox(uStr)" which returns blank)
just wondering if anyone knows how i can get this to work?
I'm building a login page, its Modal so cannot be clicked away
the basic login function works well (compares username and password entered with that in a table and, if all values are equal, opens a main menu form) as the login form is modal i had to set its visibility to false so that the user may interact with the main menu, which is not modal
now the code for the login page is in a seperate module (i just had the login button on the login form call a function from the module), i figured doing this by doing this (and by declaring the username string with "Public uStr as String") would create a global variable that i could use on all other forms
This does not seem to be the case (im testing it by having a message box on the form load event of the main menu "msgbox(uStr)" which returns blank)
just wondering if anyone knows how i can get this to work?