Reading Registry - easy..... I think.
Posted on 1998-08-13
Here's the deal........ I've done many registry reads, writes, etc..., without a problem......
but I am now trying to read the value "[Default]" or "(Default)" as many of the applications
have listed for a directory install. (This value is just about everywhere in the registry).
I thought this would be just like any other read, but I can't seem to get this value.
If the registry has 2 values to extract (after opening the key) and the only 2 values are
If I plug this readstring command into my code:
Temp_Str := ReadString('Path');
then my code will execute fine and get the value.
If I replace the same string with:
Temp_Str := ReadString('[Default]');
then it won't return anything....... even though both "Path" and "Default" contain strings.
It has to be possible to read this, anyone know what I'm missing here? I tried (Default) thinking
that I was misinterpreting the ending characters, but that doesn't work either.