proc XltSetRMCOdata {} {
upvar xlateInVals xlateInVals
xlateOutVals xlateOutVals
set msg “‘”
append msg [join $xlateInVals “‘,'”]
append msg “‘”
set dtTm [clock format [clock seconds] -format {%Y-%m-%d %H:%M:%S}]
set sqlcmd “INSERT INTO rm VALUES ($msg,’$dtTm’)”
echo “XltSetRMCOdata >$sqlcmd<"
package require sqlite
sqlite db /export/quovadx/qdx5.6/integrator/prd/tclprocs/agfa.db
if { [catch {db eval $sqlcmd} result] } {
echo "$result"
}
db close
}
Input
I need to use double quotes because of the apostrophes.
Any help appreciated