SelectDate Return Value

Discuss OrbForms Designer and PocketC Architect

Postby nalonge on Wed Feb 05, 2003 4:56 pm

Hi All,

How do I retrieve the date selected by the user when I call the selectdate() method? Is it possible to return something other then true/false?

Thanks for your help.

Nick
nalonge
 
Posts: 56
Joined: Wed Feb 05, 2003 4:54 pm
Location: USA

Postby jims on Wed Feb 05, 2003 5:17 pm

Nick,

Date returns data inside a Date structure, e.g:

Code: Select all
Date   rdate;
string  datestring;
bool    st;

// Set the date to right now so select date starts with today.
rdate.now();
// Get the date.
st = rdate.selectdate(dateDayByDay,"Please Enter Date");
// datestring will contain the string representation of the date.
datestring = rdate.date();


The bool st just says if the user actually selected a new date or pressed cancel.

Later,
Jim
jims
 
Posts: 34
Joined: Wed May 22, 2002 4:01 pm
Location: USA

Postby nalonge on Wed Feb 05, 2003 5:22 pm

Thanks for the quick reply!

I was using dateDayByMonth. I changed to dateDayByDay and it worked great.

Thanks again.
nalonge
 
Posts: 56
Joined: Wed Feb 05, 2003 4:54 pm
Location: USA


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 3 guests

cron