Hi guys,
having a quick issue with an application im building. Basically i am using a structure to hold 2 variables that i use througout the application.
Public Structure uses
user_name as string
admin_rights as boolean
I set the public structure variables on the Log-In page.
When the user is validated, etc. it takes you to the Main Page.
When i check to see if the variables values are still in place on the main page
only the admin rights variables is correct. The user_name variable is nothing.
I have a feeling the .dispose command on the Log-In page is killing the user name variable. HOwever how come the admin right variable is staying through the form change? Both variables are set up the same within the structure. Can structures only hold a certain data type ???
Anyone have a suggestions...Please help if you can...
Log In form starts(structure variables are set)-->Loginform disposed, Main form loads....variables are checked only admin rights as a value in it.
When i check the variables right after the variables are set in log in they are correct.
I stepped through the code and both variables are being set correctly...
Thanks for help guys.