×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PropertyBag ?

PropertyBag ?

PropertyBag ?

(OP)

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

RE: PropertyBag ?

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])

RE: PropertyBag ?

(OP)
Thanks

It's exactly what I was looking for.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources