Untitled

 avatar
unknown
plain_text
a year ago
363 B
2
Indexable
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