I have a modal login dialog box that sets a string variable and then the dialog box closes. (It is a login dialog box and if correct username and password, it sets the string to the value of the username.) I need to be able to access the value of this variable from the main form of my application. In C++ the modifier would be "external". Then, this variable would be accessible anywhere in the application. I need to be able to access the username from anywhere in the application so that the app will be able to determine the type of privileges the current user has when modifying the database.
Thanks in advance.