KiXtart Language Reference (@ERROR)
[ KiXtart VBScript Batch AutoIt HTA PowerShell Windows Command Lines Other Command Line Utilities ]@ERROR (Macro)
Available from version 2.33 through the latest release.
Syntax
@ERROR
Description
Error code returned by previous function or command
Return Values
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.
Example
If @Error <> 0
? "Error " + @Error + " has been encountered"
EndIf
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.
Remarks
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.
Also see:
@SERROR
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!

iTripoli prides itself on providing top notch customer service
Find answers or open a ticket to ask directly, when opening a ticket we will suggest relavant articles to help you get answers as quickly and accurately as possible. Visit our support center now!



