Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 27 Feb 2019 at 11:40am
I suspect there may be some non-visible ASCII code that is causing this issue. Instead of using Replace() you might want to do something like this:
NumberVar char := 1;
StringVar result := "";
While char <= length({Field3} do
(
if {Field3}[char] in (A..Z, a..z, 0..9) then
result := result + {Field3}[char]
);
I don't know if this syntax is exactly correct, but the thought is to go through the string and only keep characters that are alpha-numeric.
Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Posted: 28 Feb 2019 at 7:17am
You forgot to increment Char
NumberVar char := 1;
StringVar result := "";
While char <= length({Field3} do
(
if {Field3}[char] in (A..Z, a..z, 0..9) then
( result := result + {Field3}[char];
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum