Hi

I'm trying to use FindStrInStr, but I find that there are discrepancies
between the documentation and the code, and also what the code actually
does!

OK, so I try the following:

UInt pos;
Boolean match;
match = FindStrInStr("hello", "hello", &pos);

Now: the documentation SAYS that FindStrInStr is void return - actually,
looking in UI/Find.h I see that it returns Boolean, and the documentation
would suggest that it returns TRUE if the string is found. Also, in all the
examples, FindStrInStr returns Boolean. So ok, I assume that small part of
documentation is wrong. However, the above example returns false. Which is
puzzling. What am I doing wrong? Has anyone else had problems with this?

Many thanks
Fran


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to