I would like the experts, to confirm if below case is a PB2017 bug.
Preceding and succeeding character Char(26) ('') got removed when using Trim function.
We have migrated from PB12.5 to PB2017R3(Build 1880). When we use Trim function to an encrypted string it removes a character, Char(26) ('').
for example, Trim("Password") resulted as "Password".
The same resulting correctly in PB12.5; Trim("Password") resulted as "Password".
To Reproduce:
Get the result of Trim("Password") in a variable. we can see the issue.
The character "" is the result of Char PowerScript function.
Char(26).
Remarks:
Ours is a standard window based business application.
we use,
Appeon PowerBuilder Standard Edition
Version 2017 R3 Build 1880
As of now, we are changing the code to avoid using 'Trim' function for encrypted strings.
FWIW: I agree with you & Brad 100% - leave it alone ... LOL!
Regards ... Chris
PowerBuilder Classic Version 12.5.2 Build 5006
This reminds me of an old joke...
Patient: Doctor, my arm hurts when I do this (moves arm).
Doctor: Well don't do that.