Save name in variables

C

camilla

I want to save personal information, (name, title etc) in a inifile for use
with different template. Anyone who has any ideas how to do that?
 
M

Mark Tangard

Camilla,

To store the info:

thingtosave = System.PrivateProfileString(xxx, yyy, zzz)

where xxx is the path of the INI file (will be created if it doesn't
exist); yyy is the "key" under which you want to store the item
(a key basically just serves a heading to separate chunks of related
items; you choose it yourself); and zzz is the item to be saved.

To retrieve the info, just invert the statement above.

See the help on PrivateProfileString for more.
 

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