proc xltp_substring {} {
upvar xlateInVals xlateInVals
xlateOutVals xlateOutVals
set start_pos [lindex $xlateInVals 0]
set field_length [lindex $xlateInVals 1]
set str_value [lindex $xlateInVals 2]
echo xltp_substring start_pos=$start_pos, len=$field_length, string=$str_value
set xlateOutVals [csubstr $str_value $start_pos $field_length]
echo $xlateOutVals
}
In my case start_pos = 4 and length is 99. The string passed in is
ZFA!EASY AUTO
the echo’s from the code above produces the following from the testing tool.
xltp_substring start_pos=4, len=99, string=ZFA!EASY AUTO
EASY AUTO
But in my output the only thing that gets passed is “EASY”
0(0).PV1(0).#42(0) “Pending Location” : >EASY< Any ideas? thanks, Mark