Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

PropertyBag ?

Status
Not open for further replies.

bedasy

Structural
Joined
Dec 31, 2004
Messages
4

Hello, I'm writing a VBA program for Autocad 2005. I want to save some property value at the end of the program (like the path of a file or the value of a boolean variable) and be able to retrieve them the next time I'll use the program.

In VB6 I would use a PropertyBag object, but in VBA this object does not appear to exist. For now, I'm saving them in a text file but I dont like it.

Anybody have a better way to save variable value?

thank you
 
VBA (at least for MS Office) also supports Savesetting

Saves or creates an application entry in the application's entry in the Windows registry.

Syntax

SaveSetting appname, section, key, setting

and

GetSetting(appname, section, key[, default])

 
Thanks

It's exactly what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top