You must convert the actual string (strAsTyped):
BytePtr convTab = GetCharCaselessValue();
for (z=0; strAsTyped[z] != 0; z++)
strToSearch[z] = convTab[strAsTyped[z]];
found = FindStrInStr(yourTxtP, strToSearch, (Word *)&fldPos);
Regards
Bozidar
> Hi there,
>
> I am wondering about the FindStrInStr function. When debugging my
> Search function, the following strings are being passed to FinStrInStr:
> rec "123456789" (pointer to DB)
> pattern "1234"
> &pos 0
> Unfortunately FindStrInStr returns FALSE.
>
> Another thing: The strToSearch seems to be totaly wrong when peeking
> into the FindParams structure - strAsTyped is ok. I don't think it's
> the emulator (d29 FYI) because on the real device Search also
> yields no match. With FindHack, however, the program crashes.
>
> Any clue?
> Holger Klawitter
> --
> Holger Klawitter +49 (0)251 484 0637
> [EMAIL PROTECTED] http://www.klawitter.de/
>
>