Specifying an action when user clicks OK (KillFormOkCB)
The KillFormOkCB callback takes three parameters:
-
the process id (pid)
-
the main form (mainForm)
-
the keyed list (cbs, as required at the end of a callback's
parameter list)
To kill the process,
exec(TCL)
runs the
kill -9 command on the process ID contained in pid.
In real practice, a catch would typically be placed
around this command.
Next,
VxGetVar(VTCL)
gets the handle of the list widget, and calls the
DoRefresh procedure to update the list.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005