tpham1002002
Technical User
I am creating a TCL script namely test.tcl in that script I use many built-in Tcl commands to test a tool in batch mode. This is contents of the script, for example
a $myname
b $last $first
c $occupation
where a, b and c are Tcl built-in commands
somehow the variables are passing incorrectly and cause one of the commands failure (for example command b will fail if $first is empty string) then it will stops the script running through the end.
I am thinking a way to keep the test.tcl script running through the end in that case and report the error if there is any but I dont know how to do that.
I guess I need to have a check in each command to capture the error if it fails but it is beyond my knowledge since I just learn Tcl.
I would like to have your help to help me to resolve the issue.
Thanks a lot
Tony
a $myname
b $last $first
c $occupation
where a, b and c are Tcl built-in commands
somehow the variables are passing incorrectly and cause one of the commands failure (for example command b will fail if $first is empty string) then it will stops the script running through the end.
I am thinking a way to keep the test.tcl script running through the end in that case and report the error if there is any but I dont know how to do that.
I guess I need to have a check in each command to capture the error if it fails but it is beyond my knowledge since I just learn Tcl.
I would like to have your help to help me to resolve the issue.
Thanks a lot
Tony