Using Win32 functions in Visual FoxPro Image Gallery
String
..msdn
CharLower
CharToOem
CharUpper
OemToChar
StrCmpC
StrFormatByteSize
StrFromTimeInterval
StrToInt
StrToIntEx
StrTrim
Code examples:
High-powered ALLTRIM
StrTrim
..msdn    Add comment     W32 Constants      Translate this page
Removes (trims) specified leading and trailing characters from a string.
Code examples:
High-powered ALLTRIM
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-15 12:00:00
Modified: 2001-11-26 16:03:11
Visited in last 7 days: 32
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.92.194.75)
18 sec.Function: 'JetBeginSession'
39 sec.Function: 'ConvertSidToStringSid'
58 sec.Function: 'GetErrorMode'
1.32 min.Function: 'CreateEllipticRgn'
1.68 min.Function: 'WinHttpSetCredentials'
2.13 min.Function: 'DestroyIcon'
4.15 min.Function: 'MAPIFreeBuffer'
Google
Advertise here!