CompareMemoryString()
语法
Result = CompareMemoryString(*String1, *String2 [, Mode [, Length [, Flags]]])概要
Compare two strings at the specified memory addresses.
参数
*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 unicodeThe default is #PB_Unicode if the program is compiled in unicode mode and #PB_Ascii otherwise.
返回值
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
参阅
PokeS(), PeekS(), MemoryStringLength(), CopyMemoryString(), CompareMemory(), MemorySize()
已支持操作系统
所有