"Nihar Desai" <[EMAIL PROTECTED]> writes: > This is how I did it. > May be there's a better way?? > Read the help of ClipboardGetItem.
This is a very poor way to do it, because you are overwriting the clipboard, even though the user has not asked you to do this. Here is how I would do it (untested code with no error checking): UInt16 s,e; Char* text; FldGetSelection(field, &s, &e); text = MemPtrNew(e - s + 1); StrNCopy(text, FldGetTextPtr(field) + s, e - s); text[e - s] = '\0'; -- Dave Carrigan ([EMAIL PROTECTED]) | Yow! HOW could a GLASS be UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | YELLING?? Seattle, WA, USA | http://www.rudedog.org/ | -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
