CompareMemoryString()
Syntax
Result = CompareMemoryString(*String1, *String2 [, Mode [, Length [, Flags]]])Description
For advanced programmers. Compares two string at the specified memory address. The strings should be zero terminated or the 'Length' should be specified to tell how many characters should be compared. This function can be very useful to compare string in memory buffer for performance reasons.
'Mode' can can be one of the following values:0: String comparison is case sensitive (a <> A) 1: String comparison is case insensitive (a = A)'Result' can can be one of the following values:0: if String1 equals String2 -1: if String1 is lower than String2 1: if String1 greater than String2The optional 'Flags' parameter can be one of the following values:#PB_Ascii : Compares the strings as ascii, even when the program is compiled in unicode mode #PB_UTF8 : Compares the strings as UTF8 (the program can be either in unicode or ascii mode) #PB_Unicode: Compares the strings as unicode string, even when the program is compiled in ascii modeNote: when the 'Flags' parameter is specified, the 'Length' can be put to -1, to compare the strings until a null character is found.
Supported OS
All