A work-around is to call TblUnhighlightSelection just before TblSelectItem. Now looking at other applications, I see that this work-around is fairly common. Should it be mentioned in the Palm OS reference or the Palm OS companionn documents?
I think the high quality of the Palm OS documentation is what has attracted so many programmers. This problem was the first time I have had to take a day to understand how the Palm OS documentation differs from the OS. Unfortunately that is a common occurrence with other OSs.
Tables are one of the dark corners of Palm OS, and they are considered dark magic by many. I'd recommend that anyone who wants to use these get a copy of the older Palm OS source code from the seeding section of the Palm OS Developer program and study it. Also, I strongly recommend looking at the PIM application source code and seeing how they use them. The Table APIs appeared in Palm OS 1.0 as an abstraction of things done in the PIM apps, so those are very good examples for their use.
As for this particular thing... it sounds like you've got a good solution. I personally tend to avoid tables, or if I use them, I use the Object Library for Palm OS's CGrid objects to wrap them with something a bit saner.
-- 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/
