--- Huihui Yow <[EMAIL PROTECTED]> wrote:
>
> TblSetItemStyle(tablePtr, row, 0, numericTableItem);
> TblSetItemInt(tablePtr,row,0,row);
>
> TblSetItemStyle(tablePtr,row,1,textTableItem);
> h = DmGetRecord(myDB,(UInt32)row);
DmGetRecord() gets a handle to a database record and marks it busy.
IIRC, you stored a string in your database records. This is going to
cause a problem below. Also, when you are done with the record, you
need to call DmReleaseRecord() to release the record.
>
> if (h) {
> TblSetRowData(tablePtr,row,(UInt32) h );
This typecasts the handle to a UInt32 and sets the row data to whatever
that is. You don't want to do this. You should use MemHandleLock() to
get a pointer to the data, then use StrAToI() to convert that string to
a number, then set the row data to that number.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/