> I tried FldGetSelection, but it is a void function and returns nothing
Functions may retung things by other means than return values.
FldGetSelection "returns" the location of the selection in the pointer
parameters. YOu pass in a pointer and FldGetSelection fills in the data
you've requested.
FieldPtr fld;
UInt16 from;
UInt16 to;
// obtain fld
FldGetSelection( fld, &from, &to );
// Now from is the index of the first charachter of the selection.
Now you can get the text the regular way
(FldGetTextHandle+MemHandleLock,
think about nonexisitng handles) and copy the requested part into your
string (think about trailing zeroes :-).
With kind regards / Mit freundlichem Gru�
Holger Klawitter
--
Holger Klawitter
[EMAIL PROTECTED] http://www.klawitter.de
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/