The origional code worked form me. I am running Windows 2000 Client/Server. Kix 4.20 rc3 and Kix 4.20 Final Release.

Query are you running KixScripts Editor?