Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Passing multiple args to a tcl proc in one variable › Re: Dynamic proc call
Something like:
set listArgs
eval ECP_Send_Email $listArgs
The eval command will let you construct just about any command dynamically, then call it. It works with lists, though, not strings. Create the command as a list, then use eval.
But if you’re doing a proc call, you want to be sure that the list you’re passing to the proc has the same number of arguments as the proc is expecting, or you will get a run-time error.