Well, the whole thing is not too serious anyway:

I made a type cast UInt->Int16 of my database record position. This is actually not
so concerning, because I will hardly try to show more than 32767 records in my
list.

Still I try to understand why you used an Int16 for the list position, which does
not seem completely in accordance to the UInt Record position of the database
manager and to the UInt max number of lines argument of LstSetListChoices.

Maybe a ListDrawFunctionType can receive a negative position? When does this
happen? What does it mean?

Thanks.

David Fedor schrieb:

> >The callback function for drawing a list's lines (see
> >LstSetDrawFunction) is defined in the handbook of SDK 3.5 as
> >
> >void ListDrawDataFuncType (UInt itemNum...
>
> Get the 4.0 docs.  There are lots of things fixed in them, including this typo.
>
> In general, you should trust the .h files - they're the reality that the
> docs are explaining, and docs are just as subject to bugs as code... (I
> guess I should qualify: comments in .h files aren't necessarily true, but
> actual compiling code, well, it's the real thing.)
>
> -David Fedor
> Palm, Inc.


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

Reply via email to