Hi
a educated guess...
> Here the fun starts - Why is the following such a big difference ?:
>
> This one doesn't work
> ##################
> static void TableCustomDraw (VoidPtr table, Word row, Word column,
> RectanglePtr bounds)
> {
> UInt CurrDisplayRec = topIdx + row - 1;
> CALLBACK_PROLOGUE
> ....
This has some code *before * the CALLBACK_PROLOGUE macro which ensures that
global var (topIdx) access works.
> This one DOES work - WWWHHHYYY ???
> ####################################
> static void TableCustomDraw (VoidPtr table, Word row, Word column,
> RectanglePtr bounds)
> {
> UInt CurrDisplayRec;
> CALLBACK_PROLOGUE
> CurrDisplayRec = topPatientIdx + row - 1;
> ....
This has the code moved behind the macro
You were lucky the first did work at all on some os versions.
Jens
-------------------------------------------
Jens Rupp
[EMAIL PROTECTED]
www.gacel.de
www.pocketreport.com
Ircnet: Gacel
-------------------------------------------
"Ein Buch das man liebt, darf man nicht leihen, sondern mu� es besitzen".
Friedrich Nietzsche
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html