Jens:

50 wet-noodle lashes to you for mis-spelling KiXtart!

GSUK:

The error messages are pretty standard, and you can find lists online - as Jens pointed out. They are not really specific to Kix - most programs return them of some kind. An error of 0 (zero) means Success - no error occurred. This is handy, as you can
Code:
 
$Answer = Function()
If @ERROR
'Failed!' ?
' Error was - @SERROR' ?
EndIf


Simple test of @ERROR being true means some kind of error occured - then you can potentially figure out what kind of error and perform an alternate or corrective action.

Many people simply return 0 on success and 1 (Incorrect Function) on failure. Jens is returning a more descriptive and appropriate error message - "Incorrect Parameter".

If you want an exercise that will show you the error messages and how they are returned & interpreted, try something like this:
Code:

For $X = 0 to 50
DoTest($X)
@SERROR ?
Next

Function DoTest($EC)
Exit $EC
EndFunction



Armed with an error code list, you can return an appropriate exit code from a UDF you've written.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D