CompareMemoryString()

Syntax

Result = CompareMemoryString(*String1, *String2 [, Mode [, Length [, Flags]]])
Description
Compare two strings at the specified memory addresses.

Parameters

*String1, *String2 The addresses of the strings to compare.
Mode (optional) Character comparison mode. This can be one of the following values:
  #PB_String_CaseSensitive : Case sensitive search (a=a). (default)
  #PB_String_NoCase: String comparison is case insensitive (a=A).
Length (optional) The number of characters to compare. If this parameter is not specified or has the value -1, the strings are compared until a null-character is reached. If the strings are not null-terminated, this parameter must be specified.
Flags (optional) The string format to use when comparing the strings. This can be one of the following values:
  #PB_Ascii  : Compares the strings as ascii
  #PB_UTF8   : Compares the strings as UTF8
  #PB_Unicode: Compares the strings as unicode
The default is #PB_Unicode if the program is compiled in unicode mode and #PB_Ascii otherwise.

Return value

Returns one of the following values:
  #PB_String_Equal  : if String1 equals String2
  #PB_String_Lower  : if String1 is lower than String2
  #PB_String_Greater: if String1 greater than String2

See Also

PokeS(), PeekS(), MemoryStringLength(), CopyMemoryString(), CompareMemory(), MemorySize()

Supported OS

All

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