 |
 |
 |
|
|  |  |
 |
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: 16 |
|
 |
 |
 |
 |
Copyright © 2001-2013
News2News, Inc.
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Privacy policy
|
 |
 |
 |
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |
 |
|
|