Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
363 B
1
Indexable
Never
local stringvar description := {YourTable.COD21Z_Description};
local stringvar withPrev := "";
local stringvar withoutPrev := "";

if InStr(description, "Prev.") > 0 then
    withPrev := Replace(description, "Prev.", "");
    withoutPrev := "Prev." + Replace(description, "Prev.", "", 1, 1);
else
    withoutPrev := description;

withoutPrev + Chr(10) + withPrev
Leave a Comment