Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
380 B
1
Indexable
Never
local stringvar withPrev := "";
local stringvar withoutPrev := "";

if InStr({YourTable.COD21Z_Description}, "Prev.") > 0 then
    withPrev := {YourTable.COD21Z_Description}
else
    withoutPrev := {YourTable.COD21Z_Description};

if InStr(withoutPrev, "Prev.") > 0 then
    withoutPrev := Replace(withoutPrev, "Prev.", Chr(10) + "Prev.", 1, 1);

withoutPrev + Chr(10) + withPrev
Leave a Comment