home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / control / catch < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.0 KB  |  17 lines

  1.           catch command ?varName?
  2.                The catch command may be used to  prevent  errors  from
  3.                aborting  command  interpretation.  Catch calls the Tcl
  4.                interpreter recursively to execute command, and  always
  5.                returns  a  TCL_OK  code, regardless of any errors that
  6.                might occur while executing command.  The return  value
  7.                from catch is a decimal string giving the code returned
  8.                by the Tcl interpreter after executing  command.   This
  9.                will  be 0 (TCL_OK) if there were no errors in command;
  10.                otherwise it will have a non-zero  value  corresponding
  11.                to  one  of the exceptional return codes (see tcl.h for
  12.                the  definitions  of  code  values).   If  the  varName
  13.                argument  is  given,  then  it  gives  the  name  of  a
  14.                variable; catch will set the value of the  variable  to
  15.                the string returned from command (either a result or an
  16.                error message).
  17.