 |
StrTrim ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Removes (trims) specified leading and trailing characters from a string. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL StrTrim(
LPTSTR pszSource,
LPCTSTR pszTrimChars
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER StrTrim IN Shlwapi As StrTrim;
STRING @ pszSource,;
STRING pszTrimChars
|
 |
 |
 |
| Parameters: |
 |
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. |
 |
 |
| Return value: |
 |
| Returns TRUE if any characters were removed, or FALSE otherwise. |
 |
 |
| My comment: |
 |
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.
|
 |
 |
| Word Index links for the StrTrim : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-15 12:00:00 | | Modified: | 2001-11-26 16:03:11 | Visited in last 7 days: 17 |