Hmm . . .

I tried doing it your way Shawn, and it didn't work. Here's an example. It seems that there is a lack of error reporting in some Kix functions.

function catcherror($errortext, optional $error)
if $error <> 0
messagebox($errortext,"Script Failure",48)
del(c:\temp.bat)
exit
endif
endfunction

$noteslocation = readprofilestring($notesini,"Notes","Location")
catcherror("Could not determine noteslocation.",@error)

The READPROFILESTRING function doesn't return an error code if the INI entry doesn't exist.

Is there a universally better way of error checking in Kix?