LongLife Variables

G

Greg Bromage

This something like this might be best handled as a
Registry setting, because I'd imagine you'd want the
setting to persist after the application has been closed
and re-opened.

Use the SaveSetting() function on the preferences form,
and in all other places use GetSetting() to retrieve it.

The benefits of this are that the setting will follow the
user between sessions and between different workstations.
If you develop a standard for the way you handle the
registry, you can even use the same setting in more than
one application. Selecting Centimetres or Inches in one
application set it for all your programs for that user.

Rgds,
Greg
 

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