> Message: 1
> Date: Wed, 22 Jun 2005 23:02:08 -0700 (PDT)
> From: soonhuat ong <[EMAIL PROTECTED]>
> Subject: TDateTimePicker problem
>
>
> I have a TDateTimePicker component with the name -
> 'dttimeStart' and set its "Kind" property to
> dtkTime, and set the "Format" property to 'hh:MM' .
>
> When user click at the Save button, the following
> code is executed.
>
>
> procedure TfrmMain.bbtnSaveClick(Sender: TObject);
> begin
> With Table1 do
> Begin
> FieldByName('Field1').AsString :=
> FormatDateTime('HH:mm',dttimeStart.Time);
> Post;
> End;
> end;
>
> P/S: Field1's datatype is char(5), eg of data =
> 11.25
>
Instead use
FieldByName('Field1').asDateTime := dtTimeStart.Time
mick
Send instant messages to your online friends http://au.messenger.yahoo.com
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/