KiXtart Language Reference (@ERROR)
Windows Command Lines
Other Command Line Utilities
Available from version 2.33 through the latest release.
Error code returned by previous function or command
Negative numbers returned by this macro normally represent documented KiXtart error codes. When such a value is discovered, see the function in question to ascertain the meaning of the value. Positive numbers represent Win32 error codes.
If @Error <> 0
? "Error " + @Error + " has been encountered"
The above script alerts the user an error has occurred if the preceding command or function returns anything other than zero. Zero indicates success, so any other value normally means failure.
The @ERROR macro variable returns the exit code of the most recent command or function. A return code of “0” means the command or function was successful. Any other value indicates an error.
Portions taken from, The Start to Finish Guide to Scripting with KiXtart. Used by permission.
Have a correction, addition or suggestion on this? Please let us know!
Last Edited: 8/25/2004. This page has been viewed 3921 times. Unless otherwise specified, all information is (C) 2004-2007 iTripoli, Inc. All Rights Reserved.
Note: you can view this information right within ASE by right clicking any keyword and selecting "Help..."
Now In Print! 496 Pages of detail covering each and every command. Includes common problems, command alternatives and real-world examples throughout.
Click here for special 35% discount!