hi, you can use StrNCopy() function.
Char * StrNCopy(Char *dst, const Char *src, Int16 n) eg: char *dest = NewPtrNew(10); StrNCopy(dest, "ABC123", 3); dest will contain "ABC" regards, > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Susan > Sent: Tuesday, January 28, 2003 8:53 PM > To: Palm Developer Forum > Subject: About the string function.!! > > > Hi,All > > Now I want to get the first three numbers from a string. > > In CASL,I can use the left function(left(string,3)),Does CW have such > functions? > > Thanks! > > Susan > > > > -- > For information on using the Palm Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
