Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Dec 31, 2004
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
 
Replies continue below

Recommended for 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