Using Win32 functions in Visual FoxPro Image Gallery
String
..msdn
CharLower
CharToOem
CharUpper
OemToChar
StrCmpC
StrFormatByteSize
StrFromTimeInterval
StrToInt
StrToIntEx
StrTrim
Code examples:
StrCmpC
..msdn    Add comment     W32 Constants      Translate this page
Compares strings using C run-time (ASCII) collation rules. The comparison is case-sensitive.
Code examples:
Declaration:
int StrCmpC(
    __out  LPCTSTR lpStr1,
    __out  LPCTSTR lpStr2
);
FoxPro declaration:
DECLARE INTEGER StrCmpC IN Shlwapi;
    STRING @cStr1,;
    STRING @cStr2
Parameters:
lpStr1 [out]
LPCTSTR
A pointer to the first null-terminated string to be compared.

lpStr2 [out]
LPCTSTR
A pointer to the second null-terminated string to be compared.
Return value:
Returns zero if the strings are identical.

Returns a positive value if the string pointed to by lpStr1 is alphabetically greater than that pointed to by lpStr2.

Returns a negative value if the string pointed to by lpStr1 is alphabetically less than that pointed to by lpStr2.
Usage:
cStr1 = "12345"
cStr2 = "12045"

? StrCmpC( @cStr1, @cStr2 )  && returns 3
? StrCmpC( @cStr2, @cStr1 )  && returns -3
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2010-05-20 14:34:25
Modified: 2010-05-20 14:39:02
Visited in last 7 days: 4
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.158.212.93)
11 sec.Function: 'DeleteService'
2 day(s)Function: 'bind'
 Function: 'DllGetVersion'
 Function: 'FtpRenameFile'
 Function: 'SHBrowseForFolder'
 Function: 'LoadLibraryEx'
 Function: 'UnregisterClass'
 Function: 'MQPathNameToFormatName'
 Function: 'SQLFreeHandle'
 Function: 'NetConnectionEnum'
Google
Advertise here!