Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

editbox

Status
Not open for further replies.

jayjay60

Programmer
Joined
Jun 19, 2001
Messages
97
Location
FR
I have created a dlgbox where i put edit box and button. In one of the edit box, i have attached a COleDateTime variable to it. So, the variable is initialized with GetCurrentlyDate, and keep this value all the time whatever i do to change it, it recognizes only the today date and just this date. It's problem for me because i want to be able to change the date and to use this new date for others parts of my application. How could i do that?

thanks in advance


gerald
 
use a function what returns a date. John Fill
1c.bmp


ivfmd@mail.md
 
This first application it's just a test so i want to know if it understand correctly what i want, so i just use AfxMessageBox, to return the date after i have changed its format to a string. And, all the time, the message box return to me 13/07/01, whatever the date was put, so where is the problem?
 
Have you used UpdateData() to transfer the modified values?

Just a hint. s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
The problem is what the date variable has sence only in declare place. Once decl;ared it doesn't change. All variables lifetime it is nonvolatile. If your variable is a class member, the variable will be constant. When you are using a function, you could get a volatile date, wich has sence at return time. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top