Armenian Knowledge Base  

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

LinkBack Thread Tools
Old 28.04.2006, 14:58   #1
Join Date: 04 2006
Location: Mauritius
Age: 36
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, 17:17   #2
Unsociable coder
AvDav's Avatar
Join Date: 07 2004
Location: In loneliness
Age: 37
Posts: 3,525
Downloads: 22
Uploads: 0
Reputation: 228 | 3
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.
Ум, не имеющий никакой определенной цели, теряется. М. Монтень.
Reply With Quote
Old 02.05.2006, 05:22   #3
Join Date: 01 2002
Location: Shambala
Age: 39
Posts: 7,015
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 08:13.

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