Link to home
Start Free TrialLog in
Avatar of bfreescott
bfreescottFlag for United States of America

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!!
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

This is a VB-form and not a Notes form I hope? The variable is also a VB-variable? It would make it  lot easier for me to reply to your question, for I don't know at all how VB handles variables.

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)
Avatar of bfreescott

ASKER

I do mean a VB variable
ASKER CERTIFIED SOLUTION
Avatar of bfreescott
bfreescott
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial