Posted By: John Andreasen
xcall TRIM issue - 27 Mar 24 02:39 PM
Hi,
We have found what we believe is an issue in xcall TRIM. It looks like it is trimming non-printable characters even if the second parameter is not specified.
EL7: 7.0.1756.2
Credit goes to our friend Kyle for this find and example program.
Thanks,
John
We have found what we believe is an issue in xcall TRIM. It looks like it is trimming non-printable characters even if the second parameter is not specified.
Code
build'str$ = CHR(20) build'str$ += CHR(30) Trace.Print "Built String:" + ASC(build'str$[1;1]) + "," + ASC(build'str$[2;1]) XCALL TRIM, build'str$ Trace.Print "TRIM Value:" + ASC(build'str$[1;1]) + "," + ASC(build'str$[2;1]) build'str$ = CHR(20) build'str$ += CHR(30) XCALL TRIM, build'str$, 1 Trace.Print "TRIM Value, 1:" + ASC(build'str$[1;1]) + "," + ASC(build'str$[2;1])
EL7: 7.0.1756.2
Credit goes to our friend Kyle for this find and example program.
Thanks,
John