CompareMemoryString()

Syntax

Result = CompareMemoryString(*String1, *String2 [, Mode [, Length]])
Description
For advanced user only. 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 String2

Supported OS

All

<- CompareMemory() - Memory Index - CopyMemory() ->