Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 28.04.2006, 14:58   #1
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 34
Posts: 12
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default C++ Builder 6 - DateTimePicker

Hi,

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,
Rowin
Reply With Quote
Old 28.04.2006, 17:17   #2
The splendid
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 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.
__________________
The main achievements in applied research are due to fundamental science.
Reply With Quote
Old 02.05.2006, 05:22   #3
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
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
Reply

Thread Tools


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

All times are GMT. The time now is 03:16.


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