Use the following to initialize your data values to today's date:

DateTimeType *pDateTime = (DateTimeType *) MemPtrNew(sizeof
(DateTimeType));
TimSecondsToDateTime(TimGetSeconds(), pDateTime);
                
month = pDateTime->month;
day = pDateTime->day;
year = pDateTime->year;
                
MemPtrFree(pDateTime);

------------------------------------------------------------------
Jason Henderson
Software Engineer
EagleSoft, A Patterson Co.

"The significant problems we face cannot be solved by the same 
level of thinking that created them." - Albert Einstein


-----Original Message-----
From: Nicolas Raitman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 12:59 PM
To: Palm Developer Forum
Subject: SelectDay Function


Hi to all. I am tryiing to use the selectday function in order to give the
user the possibility to select a day with a standard dialog. The problem is
that when I invoke the function like this:

Int16    day=0, month=0, year=0;
Boolean    result;
result = SelectDay (selectDayByDay, &month, &day, &year, "Select a Day");

the POSE or the Palm crashes. Sometimes it says that "Object not in form",
and some others it shows me the dialog but when I press any button in it, it
crashes...
Any ideas? Should I add a line in the AppHandleEvent regarding the SelectDay
function?
Thanks a lot,
Nicolas


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