according the help the function "StrStr" should return $FFFF when the search string is not found. In reality the following code makes the function return the value 11 in stead if $FFFF:
Code: Select all
var Wrd: word;
Str: string[10];
...
Str := '1234567890';
Wrd := StrStr(Str, '012345'); // Wrd gets the value 11.
Code: Select all
var Wrd: word;
Str: string[10];
...
Str := '123456789';
Wrd := StrStr(Str, '012345'); // Wrd gets the value $FFFF
Thanks in advance!