Solved

From panel caption to a table

Posted on 1998-05-14
2
305 Views
Last Modified: 2010-04-06
I need an example of a code that will take a panel caption
that displays a date      (panel caption is tied to a calendar)
and will replace a date in a table that has
 only one field

jjhj
0
Comment
Question by:jjhj
2 Comments
 
LVL 2

Accepted Solution

by:
kjteng earned 100 total points
ID: 1345750
1. write the following code for the onChange of the calendar1 component:

   panel1.caption:=  dateTimeToStr( calendar1.calendarDate);

2. write code to update the table. You may append it to the onChange event of the calendar1:

  table1.edit;
  table1.fields[0].asString:= panel1.caption;
(*
   or something similar to this eg
   table1.fields[0].asFloat:= strToDateTime( panel1.caption)

   WATCH OUT FOR YOUR DATE FORMAT
*)
  table1.post;

Hope the above helps

0
 

Author Comment

by:jjhj
ID: 1345751
soooo simple i can't believe it
thanks

jjhj
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 212
Delphi: how to implement a User Shortcut mapper? 1 107
select query - oracle 16 100
Drag & Drop... Data from one grid to another 2 9
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now