Location: Symbol Reference > Functions > JwCompareString Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwCompareString Function
Pascal
function JwCompareString(const S1: TJwString; const S2: TJwString; const IgnoreCase: boolean = False): integer;
Parameters 
Description 
const S1: TJwString 
Receives the first string. 
const S2: TJwString 
Receives the second string. 
const IgnoreCase: boolean = False 
If set to to true the strings will be compared ignoring case sensitivity.
 

The function has the following results: 

 

Value 
Description 
-1 
S1 is less in lexical value than S2. 
S1 is equal in lexical value to S2. That does not mean that both strings are identical. 
S2 is less in lexical value than S1. 

 

 

JwCompareString compare two TJwString values using ANSICODE or UNICODE settings depending on the UNICODE compiler directive. The comparison is done using the locale user setting. 

 

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!