Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters > C/C++

LinkBack Thread Tools
Old 28.04.2006, 13:58   #1
Join Date: 04 2006
Location: Mauritius
Age: 37
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default C++ Builder 6 - DateTimePicker


Is it possible to set the value of a DateTimePicker to blank so that when you run the application there's no value in the DataTimePicker?

Kind Regards,
Reply With Quote
Old 28.04.2006, 16:17   #2
Single fellow
AvDav's Avatar
Join Date: 07 2004
Location: My thoughts
Age: 38
Posts: 3,563
Downloads: 22
Uploads: 0
Reputation: 228 | 4
Default Re: C++ Builder 6 - DateTimePicker

One solution is to initialize in constructor, I don't know what type it has, (perhaps it's a pointer to the picker window, just assign 0 pointer in ctor),
since I don't use Builder for a long time. AFAIK, the properties in design window can be edited not only from design area facilities but also from the code. Besides, debugger can help you to understand how the picker should be created, do you really need to set it blank (and if you need where exactly to assign the value), because if it's a pointer to dynamically allocated memory you'll get a wrong, unexpected result and of course - memory leak.
The eye armed with a log is a terrible force.
Reply With Quote
Old 02.05.2006, 04:22   #3
Join Date: 01 2002
Location: Shambala
Age: 40
Posts: 7,016
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default Re: C++ Builder 6 - DateTimePicker

No man, for that type of cases there is a CkeckBox in a TDateTime picker, just set false to the property Checked and manipulate with that...
Reply With Quote
Sponsored Links

Thread Tools

На правах рекламы:

All times are GMT. The time now is 19:06.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.