When you run the script use the following:
Code:

c:\myscripts\kix32 myscript.kix /d



This will allow you to step through the script and see what it is doing on each line and you can look at what the variables are being set to .

Read up on the Debug section in the manual.
_________________________
Today is the tomorrow you worried about yesterday.