Could it be an incorrect usage of exit???

Like the manual says about exit:
quote:

Exits the current KiXtart script, or, if used at the topmost level, exits KiXtart. Exit can also be used to leave a UDF.

and about return:
quote:

Causes script execution to continue at the statement following the last CALL or GOSUB statement, and also returns from inside a UDF.

and about gosub:
quote:

When a RETURN statement is encountered, script execution continues at the statement following the GOSUB statement.

so following the manual, exit should not be used in a subroutine...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...