Opps. this was the code.....

Word CListObject::_GetLastPos(CharPtr pszRecord)
{
        VoidHand vHandle = MemHandleNew(StrLen(pszRecord) + 1);
        CharPtr pNextChar  = (CharPtr)MemHandleLock(vHandle);
        StrCopy(pNextChar,pszRecord);

        int     wTotalCount     = 0;
        for(;*pNextChar;pNextChar++)
        {
                if(*pNextChar == '\"'  && *(pNextChar + 1) == ',' &&
*(pNextChar + 2) == '\"')
                {
                        break;
                }
                wTotalCount++;
        } 

        MemHandleUnlock(vHandle);
        MemHandleFree(vHandle);
        return wTotalCount;
}

-- 
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