Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

how to assoicate the datatimepicker with dbedit

i want a dbedit(datetype) to receive the contains of datetimepicker. and save it to database.

how can i do it?
0
ws1999
Asked:
ws1999
1 Solution
 
Mohammed NasmanSoftware DeveloperCommented:
you can find some DBDateTimePicker in this link
http://www.torry.net/db_datetime.htm
0
 
kretzschmarCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now