Eg:
Code: Select all
Upper( c1 ) == Upper( c2 )
FW_StrICmp() avoids the need for this conversion and gives exactly the same results as the normal coparison.
Syntax-1:
Code: Select all
FW_STRICMP( c1, cOperator, c2, [lExact] ) --> lTrue
Code: Select all
SET EXACT OFF
? FW_STRICMP( "FiveTech Software", "=" "FIVETECH" ) --> .t.
? FW_STRICMP( "FiveTech Software", "==" "fivetech" ) --> .f.
? FW_STRICMP( "FiveTech Software", "=" "FIVETECH", .t. ) --> .f.
Syntax-2:
FW_STRICMP( c1, c2, [lExact] ) --> nResult, which can be -1, 0, 1 meaning less than, equal to, greater than.
Code: Select all
FW_STRICMP( "aaa", "AAA" ) //--> 0