how about:

Int16 ICompareResult = StrCompare ((const Char*)pCharstring1, (const Char*)
pCharstring2);
  or
Int16 ICompareResult = StrCaselessCompare ((const Char*)pCharstring1, (const
Char*) pCharstring2);

with the ICompareResult being zero if they match,
     positive ICompareResult meaning pCharstring1 sorts after pCharstring2
and
            negative ICompareResult if pCharstring1 sorts before
pCharstring2.

Sam Trimble wrote in message <9233@palm-dev-forum>...
>
>Hey, Does anybody know a way to do a if-type statment on a CharPtr? I'm
>trying to use a basic one which I have an example of below but it always
>skips over it like it doesn't equal even if it does. Anybody have any idea
>on how to do this?
>
>Ex:
>  if ( CharPtr == "thistext")
>    do this;
>
>Anything along those lines that works. Thanks.
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to