Solved

how to assoicate the datatimepicker with dbedit

Posted on 2001-08-30
2
253 Views
Last Modified: 2012-08-14
i want a dbedit(datetype) to receive the contains of datetimepicker. and save it to database.

how can i do it?
0
Comment
Question by:ws1999
2 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 50 total points
ID: 6439935
you can find some DBDateTimePicker in this link
http://www.torry.net/db_datetime.htm
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6439939
in the beforepost event use

dataset.fieldbyname('FieldName').AsDateTime := DateTimePicker1.date;

in the afterscroll-event use

DateTimePicker1.Date := dataset.fieldbyname('FieldName').AsDateTime;

meikl ;-)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question