Rafail Mladenov wrote: >Im trying to search one string in another but in case sensitive mode. >Function StrStr cant do this. Can someone tell me how to use TxtFindString >with example. And is this a right function ?
I assume you mean "...in case-insensitive mode". You can use TxtFindString (don't forget to call TxtGluePrepFindString with your search string first), but it only matches the beginning of words. If that's not what you want, then as Trevor Menagh wrote: >Why not just make a StrCaselessStrStr using StrNCaselessCompare as your >compare function in the StrStr (instead of just an ==). It works fine. But note that in Palm OS 4.0/4.1, StrNCaselessCompare calls StrLen on both strings, thus this will be slow if the string you are searching in is very long. -- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
