Group: String - Library: shlwapi
BOOL StrTrim(
LPTSTR pszSource,
LPCTSTR pszTrimChars
);
DECLARE INTEGER StrTrim IN Shlwapi As StrTrim;
STRING @ pszSource,;
STRING pszTrimChars
pszSource [in/out] Pointer to the string to be trimmed. On return, pszSource will hold the trimmed string.
pszTrimChars [in] Pointer to a null-terminated string containing the characters that will be trimmed from psz.
Returns TRUE if any characters were removed, or FALSE otherwise.
Unlike the native ALLTRIM, this function can remove not only blanks but any other characters included into the trim character list.
For this function, like for the most String functions, StrTrimA and StrTrimW flavours are available.