how to remove last 3 characters from a string

Hello,

I would like to remove last 3 characters of a string. Please help me with this.(string length varies all the time)

Thanks for your help

You can use strDel function along with strLen.

Str example = ‘Example123’;
info(strDel(example, strLen(example) -2, 3));

Great, Thank you Kranthi… it did work for me…