Thread: "pltcl" function.
What is error in this statement of “pltcl” function.
set var 'SENDING EMAIL TO: '||$mailto||' from: '||$mailfrom||' with: '||$emailserver
I am getting this error:
ERROR: wrong # args: should be "set varName ?newValue?"
Regards
Dinesh Pandey
On Mon, Apr 18, 2005 at 12:01:58PM +0530, Dinesh Pandey wrote: > > What is error in this statement of "pltcl" function. > > set var 'SENDING EMAIL TO: '||$mailto||' from: '||$mailfrom||' with: > '||$emailserver > > I am getting this error: > > ERROR: wrong # args: should be "set varName ?newValue?" You're mixing languages: you're using the SQL concatenation operator (||) in a Tcl function. See a Tcl reference for the details of Tcl syntax. The following should work: set var "SENDING EMAIL TO: $mailto from: $mailfrom with: $emailserver" -- Michael Fuhr http://www.fuhr.org/~mfuhr/