o yeah! if this isn't the newsgroup that i had to post this
question... could you tell me where!
again... thanks for your help....
MyDateTimePicker.Date := SysUtils.Date; { current system date }
or
MyDateTimePicker.Date := StrToDate('18/11/99') { some other date }
Paul
Gabriel Briviesca <gab...@bajaware.com> wrote in message
news:<38346097...@bajaware.com>...
by the way... thanks for your answer! :)
You must *really* hate writing code!
Your choice is setting properties in the object inspector - but then you're
stuck with whatever date you set there, or writing a line of code so it
always has the current date when the program runs.
--
Wayne Niddery - WinWright Consulting
RADBooks - http://members.home.net/wniddery/
Toronto Delphi Users Group - http://www.tdug.com/
-Gabe
Gabriel Briviesca wrote:
> ok... and is there is a way to change a property of the TdateTimePicker so
> that it'll get this date and I wouldn't have to write this lines of code?
>
Gabriel Briviesca wrote:
> hi, i was wondering if i could assign a TdateTimePicker a default value
> of the date when it appears... i wanted to know this so that i wouldn'd
> have to write code to do this... thank u very much!
>
> o yeah! if this isn't the newsgroup that i had to post this
> question... could you tell me where!
>
> again... thanks for your help....
--
Bob Green
Office Tech, Inc.
(317) 594-3240
(sorry if this wasn't a question and somebody got mad... it's just that i'm
grateful for your comments)
Your friend Gabriel!
"Wayne Niddery (TeamB)" wrote:
> Gabriel Briviesca wrote in message <38347CBA...@bajaware.com>...
> >ok... and is there is a way to change a property of the TdateTimePicker so
> >that it'll get this date and I wouldn't have to write this lines of code?
>
If there are a lot of datetimepickers, then in the OnCreate event perform a
loop to find all of these and set them:
for i := 0 to ControlCount - 1 do begin
if Controls[i] is TDateTimePicker then
TDateTimePicker(Controls[i]).Date := Date;
end;