Reply To: Passing multiple args to a tcl proc in one variable

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Passing multiple args to a tcl proc in one variable Reply To: Passing multiple args to a tcl proc in one variable

#57030
Scott Folley
Participant

    Yeah Troy, that is my favorite as well.  It is also nice to keep in mind that you can use optional arguments to a TCL proc like this:

    proc SendEmailMessage { mailargs {debug “0”} } {

        if {$debug} {

               echo “I am in debug mode”

    }

    That way you can send all of your information in via the keyed list variable and add an additional variable to indicate whether you are in debug mode..

    Just my $.02