Session Variable in Outlook addin

J

Joey

What would be the best way to set and get a value of a variable while outlook
is running. I want to prompt for a username and pass one time and store it
in a variable somewhere in my outlook addin and then use the variable value
everytime. Then I want to dispose of it once outlook is closed. I could
open a form and make it invisible and store them there but there has to be a
better more elegant way. Is there a session state in outlook simliar to a
session state in asp.net. I am writing my app for Outlook 2003.

Thanks!
 
S

Sue Mosher [MVP-Outlook]

If you're building an Outlook add-in, you could simply instantiate and set the value of a global variable in your add-in. Once Outlook closes, your add-in disconnects, and the variable goes out of scope.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top