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/

Reply via email to