Event handlers are optional functions that can be implemented in user scripts and called by AutoShell when certain events occur. If present, the event handler is called when the error state of the OSRedirect object changes.
This method has the following syntax:
onError(fError)
Note: The AutoShell ignores event handler return values.
Example
Specify completion event handler:
out = new OSRedirect(); out.onError = function(f){if(f)qout("An error occurred!");}; ! ver -output out
Copyright © 2013 CA. All rights reserved. |
|