bfreescott
asked on
VBA global variable lotus notes issue
Hi all,
I have an application that interacts heavily with Lotus Notes (email, databases, etc.) and I need to validate the user's Notes client (id file) password. I have a userform that initializes when my app starts and a textbox for the password. I declared the password variable globally because I want to be able to access it as many times as necessary until the app is closed. The problem seems to be that the variable is destroyed when the form is hidden. Bear in mind, I am not unloading the form, simply hiding it, so I don't know why my variable will not retain the value from the textbox.
Thanks in advance for your help!!
I have an application that interacts heavily with Lotus Notes (email, databases, etc.) and I need to validate the user's Notes client (id file) password. I have a userform that initializes when my app starts and a textbox for the password. I declared the password variable globally because I want to be able to access it as many times as necessary until the app is closed. The problem seems to be that the variable is destroyed when the form is hidden. Bear in mind, I am not unloading the form, simply hiding it, so I don't know why my variable will not retain the value from the textbox.
Thanks in advance for your help!!
ASKER
I do mean a VB variable
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
On the off-chance that you do mean a Notes variable: indeed, there is no such thing as a global variable in Notes. Three ways:
- a profile document
- some permanent document
- environment variables (they are stored in notes.ini)