Correction for the pseudo code

Char* strPos;
Char* backslashPos;

// strPos is pointer to your data struct
strPos = (Char*)(YourBackslash30TerminatedValues);

// get pos for first \30
backslashPos = StrStr(YourBackslash30TerminatedValues, "\30");
// get first record
someRecord = (copy string from strPos to backslashPos)
// jump to next record
strPos = backslashPos;
strPos +=2; 
/* You should now be at the beginning of your second data entry in the char 
array. Repeat the above steps for all other records */

Hope that helps, and works ;-)

Benjamin


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

Reply via email to