Why not use the StrNCopy function and just get a pointer (char*) to the string position you want to start at then specify from that point the number of characters you want.
Don't forget that bytes != chars. So you'd want to use TxtGetTruncationOffset (aka TxtTruncate) or TxtCharBounds to convert your byte offset to a character offset, before advancing the pointer. After that StrNCopy will take care of not copying partial characters.
-- Ken
--- "D. Kirker" <[EMAIL PROTECTED]> wrote:> PalmOS?How do I retrieve text (as a string) from the middle of a string? Similar to the substr, strleft, strright functions. Is there anything like it for
-- Ken Krugler +1 530-470-9200
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
