I am in a dilemma here and just don’t understand this. I wrote a code snippet in an xlate for PID 5. I needed to look for last name in the xlateinvals and ONLY if there is a hyphen, I need to remove any spaces before or after the hyphen. When I test this in the tester it works fine; however, when I run it thru the interface it is removing the hyphen instead! Please advise??/
Here is the script:
proc xlt_pid5_remove_space {} {
upvar xlateId xlateId
# xlateInList xlateInList
# xlateInTypes xlateInTypes
xlateInVals xlateInVals
# xlateOutList xlateOutList
# xlateOutTypes xlateOutTypes
xlateOutVals xlateOutVals
set xlateOutVals “”
set name xlateInVals
set name [lindex $xlateInVals 0]
if {[regexp — {-} $name]} {
regsub -all {s?} $name {} name
set xlateOutVals
echo remove hypthens $name
}
set xlateOutVals
}