DECLARE SHORT StrTrim IN Shlwapi As StrTrim;
STRING @ pszSource,;
STRING pszTrimChars
lcSrc = "____//Turtle Soup/ "
* notice: three characters included in the list
* of characters to be trimmed
lcTrimChars = "_ /"
? "Before: ", "["+ lcSrc +"]"
= StrTrim (@lcSrc, lcTrimChars)
? "After: ", "[" + LEFT(lcSrc, AT(Chr(0),lcSrc)-1) + "]"
|