If you run the script from a console window KiXtart will display an error message. Alternatively, use DEBUG ON in the first line of your script and step through it to see where it fails. Finally, as a best practice, you should use
Code:

$rc=setoption('explicit','on')
$rc=setoption('novarsinstrings','on')


as this will improve code quality dramatically and lower debugging time and complexity.
_________________________
There are two types of vessels, submarines and targets.