k, checked the code and can easily say, you have no use for that regwrite() udf.

now, I want to once more ask, as this type of stuff I have never seen...
is it really so that you have A SINGLE registry value that holds the whole data?
all the ini-values and stuff?
and that you want to write the stuff back to A SINGLE value?
if yes, then nothing.
this way it actually is really easy.

but if not, please tell as the big picture is something we need to see.
_________________________
!

download KiXnet