Eric: The code (OS 4) uses Int16 for the TblSetItemInt, then, when drawing a numericTableItem passes it to StrIToA which wants an Int32. So you have me puzzled too.
Looking a little deeper, however, I find that in OS 3.1 the table keeps its ItemInts as UInt16s, so I suspect what you are seeing is minor variations per OS. In light of this, I would suggest that you use a customTableItem with your own custom draw routine. In the custom draw routine you can retrieve the item int, cast it to an Int16, then use StrIToA and WinDrawChars. Wastes a little code, but it will work the same on all OS flavors. -bob mckenzie, palmsource pdx. -----Original Message----- From: Eric Marsh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 6:51 AM To: Palm Developer Forum Subject: Trouble with TblSetItemInt I've coded up a table that I want to use to display a matrix of integers. The cell type is numericTableItem and to set the value I'm using TblSetItemInt. The documentation for both of these items say that they reference an int but when I use the table I get an unsigned value. I need to display values in the range from negative to positive so this is unacceptable., Is there a way to get this cell type to display signed values or do I need to rewrite to use a different field type? Thanks, Eric Marsh -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
