Has reading from the Registry changed in 2003?

T

Theo van der Ster

I've got a dot file which stores all sorts of values in the Registry.
To read a value, I use the following syntax:

strZterm = GetSetting("Trans", "Filelocations", "termlist")

where Trans is the name of my dot file. The complete path in the
Registry is:
Software, VB and VBA Program Settings, Trans, Filelocations, termlist

This has always worked (in Word 2000 and XP) but this morning I
installed Word 2003 and all of a sudden I get an error message. I
looked in the Help but I don't understand what's wrong here because
the info in the Help is the same for XP and 2003. Can anyone help,
please? I need my dot file for my work and I'm at a loss without it.

Thanks very much,
Theo
 
T

Theo van der Ster

Well, after much scratching of the head, searching the net and a good
deal of trial and error I have solved it.

The problem was caused by the boolean values in the Registry. My XP
version was Dutch, and when you write a boolean value to the Registry
as True or False, Word translates it into Waar of Onwaar (the Dutch
equivalents). If you then try to read these same values with an English
Word version, it throws an error.

So all I had to do was go to the Registry and change every Waar in True
and every Onwaar in False in order to get my dot file running the way
it should.

It really bugs me, though, why VBA should make these weird language
distinctions when writing to the Registry. Especially since in VBA this
distinction doesn't exist.

I thought I'd answer my won question to save people from solving my
problem when I'd already solved it but also in case anyone encounters
the same problem and searches the group archives.

Regards,
Theo
 

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