Ornstein, Adam wrote:
SelectDay(selectDayByDay, &shMonth, &shDay, &shYear, cTitle);

DateType *dt6DaysPrior = new DateType;
dt6DaysPrior->day = shDay;
dt6DaysPrior->month = shMonth;
dt6DaysPrior->year = shYear;

DateToAscii (dt6DaysPrior->month, dt6DaysPrior->day, dt6DaysPrior->year,
dfMDYLongWithComma, c6DaysPriorDate);
FldSetTextPtr(txtStartDay, c6DaysPriorDate);
FldEraseField(txtStartDay);
FldDrawField(txtStartDay);

you may not even need the dt6DaysPrior date. You can just pass shMonth, shDay and shYear straight into DateToAscii().


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

Reply via email to