Hi all,

Does anyone know a way to search through a string for all instances of a
substring and replace them with a different substring?

For example:

string1 "This[CR]is a [CR] Test"

I need to replace all the "[CR]" with the '\n' newline character..

I've tried using StrStr() and TxtReplaceStr() but these aren't really cut
out for this.  Can't find any other API that might work..

Thanks for the help..

Jim



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

Reply via email to