Please consider the following:

DateTimeType DDate;
Char ADate[10];
UInt32 Seconds;


TimSecondsToDateTime(TimGetSeconds(), &DDate);
SelectDay(selectDayByDay, &DDate.month, &DDate.day, &DDate.year, "Select
Date");

 DateToAscii(DDate.month, DDate.day, DDate.year,
(DateFormatType) PrefGetPreference(prefDateFormat),
ADate);

 len = FldGetTextLength(ctrlPtr(form,Field1006));
FldDelete (ctrlPtr(form,Field1006), 0, len);
FldInsert (ctrlPtr(form,Field1006), ADate, StrLen(ADate));

//  The field contains the correct day converted from DateTimeType: DDate

Seconds = TimDateTimeToSeconds (&DDate);

//  On run:  Bus error: reference to an non RAM or ROM address or reserved
hardware address

Can anyone help?

Thanks





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

Reply via email to