Solved

From panel caption to a table

Posted on 1998-05-14
2
293 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
Comment Utility
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
Comment Utility
soooo simple i can't believe it
thanks

jjhj
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

14 Experts available now in Live!

Get 1:1 Help Now