If you check the KiX manual, you would see that ReadValue:
Quote:

Returns: ASCII representation of the specified registry value.



I can see that you use Val(), but have no idea why. I also have no idea why you cast it to numeric and then try to append a string to it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.