At 08:06 AM 7/9/2004, you wrote:
The prototype:

Boolean TblGetSelection (const TableType *tableP, Int16 *rowP, Int16
*columnP)

Parameter description:

-> tableP            Pointer to a table object.
<- rowP, columnP     The row and column indexes (zero-based) of the
currently selected item.

Question:
It appears (at least for PalmOS 5.2.8) that the returned values of row
and column are zero if nothing is selected, but since the row and column
indices are zero-based that is in the valid range.  Shouldn't the
returned row and column values be out of the valid range, for example
-1, when nothing is selected?

Use the actual Boolean return value of TblGetSelection to tell if anything is highlighted at the moment; it will be true if there is a selection, and it will be false if there is no selection.



-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to