Hi All,

The following one took me days to figure out...
Anybody an idea what I might have done wrong ?

Details:
I have a form with a table and a custom draw routine that starts as below:
It has some variable declarations at the beginning that I do initialize.

The application runs fine on a OS3.0 but doesn't run on a OS3.3 or OS3.5
I have changed the Variable initialization slightly and now it works on 3.3
and 3.5 as well

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 one DOES work - WWWHHHYYY ???
####################################
static void TableCustomDraw (VoidPtr table, Word row, Word column,
RectanglePtr bounds)
        {
        UInt            CurrDisplayRec;
        CALLBACK_PROLOGUE
        CurrDisplayRec  = topPatientIdx + row - 1;
....


What is it that it is such a big difference of these two lines - I have no
idea.



Thanks for some pointers, comments or ideas
Ole Grossklaus



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to