You are not telling a complete story. If KiX encounters an error, there would be a message. It looks like this is just a snippet of your code as I see a RETURN at the end. If you isolate this snippet to another file and run it, does it fail?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.