Reading from memos

Postby Jules Saunderson on Thu Apr 08, 2004 10:51 am

Is there a way to read from memos other than line by line? I want to be able to read from a list seperated by comas rather than writing everything on a new line. What's the simplest way to do this please.
Cheers,
Jules
Jules Saunderson
 
Posts: 6
Joined: Wed Feb 18, 2004 3:02 pm
Location: United Kingdom

Postby gmigueis on Sun Apr 11, 2004 4:40 pm

You could read the entire memo into a string and then use the built-in string tokenizer to get your coma separated items! (the function is strtok, I think).
Hope it helps.
gmigueis
 
Posts: 18
Joined: Mon Mar 08, 2004 2:35 pm
Location: Portugal

Postby Jules Saunderson on Mon Apr 12, 2004 10:12 am

That's great thanks,
Jules Saunderson
 
Posts: 6
Joined: Wed Feb 18, 2004 3:02 pm
Location: United Kingdom


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 1 guest

cron