CHeighlund
Programmer
I have been requested to work on a program, adding a login form to it. With the gracious assistance of some posters here, I was able to get the login form to work, and to cause it to show up during the program's run. However, my boss also wants me to display some of the information (UserID, UserName [not the same; ID is a numeric value]) from the login as part of the main program.
I've looked into what I can find about variables, but I'm not seeing how I could do this with my current setup. As best I understand it, the login form appears to be dying at the end of its brief run. Therefore, since that run is called and completed with a single command, I do not appear to have any place where I can set a dpr-local variable equal to it; attempts to do so have resulted in either getting a value of '' for the string value I'm trying to send, or else getting a run-breaking error. For the record, both the login form and the main form are in the dpr file's 'uses' block, and the variable in the login form is in the interface segment. Again, this setup does not appear to work.
Is there any way I can successfully pass an actual variable value between the login form and the main form, or will I need to write the value to an outside file then quickly reread it?
I've looked into what I can find about variables, but I'm not seeing how I could do this with my current setup. As best I understand it, the login form appears to be dying at the end of its brief run. Therefore, since that run is called and completed with a single command, I do not appear to have any place where I can set a dpr-local variable equal to it; attempts to do so have resulted in either getting a value of '' for the string value I'm trying to send, or else getting a run-breaking error. For the record, both the login form and the main form are in the dpr file's 'uses' block, and the variable in the login form is in the interface segment. Again, this setup does not appear to work.
Is there any way I can successfully pass an actual variable value between the login form and the main form, or will I need to write the value to an outside file then quickly reread it?