message TRIM("custom/InvctReport.p", "InvctReport.p")
The output when executing this statement is "ustom/". I am not sure why progress is trimming of only "c" from custom. The output which I would like to get is "custom/".
message replace("custom/InvctReport.p", "InvctReport.p","")
normally we use TRIM to strip trailing spaces and such.
The TRIM function strips off each character on the "trim" list from the targert string. It's not a "here's a character sequence to remove" function.