Also remember that the debugger uses register coloring - so be sure the
value displayed is actually the value of the variable at the time/location
you are looking at it.

/fn

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim
Astle
Sent: Tuesday, May 23, 2000 1:40 PM
To: Palm Developer Forum
Subject: Re: DateType


I'm not sure exactly what the problem that you're having is... is it just
the debugger results midway through coding?  What's the final outcome when
you display your data on a form?

Remember that DateTimeType uses shorts (16bits)

typedef struct
{
     Sword second;
     Sword minute;
     Sword hour;
     Sword day;
     Sword month;
     Sword year;
     Sword weekDay;
} DateTimeType, *DateTimePtr;

and DateType uses unsigned shorts (16bits)

typedef struct
{
     Word year :7;  // limited to 7bits in length - (1904 - 2031)
     Word month :4;  // limited to 4 bits in length
     Word day :5;  // limited to 5 bits in length
} DateType, * DatePtr;

Regards,

--

Tim Astle



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

-- 
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