Solved

Clipper like entry fields

Posted on 1997-05-07
5
259 Views
Last Modified: 2010-04-06
I need to use clipper like Date Entry fields
and Logical Entry fields
ie. Date:  "  /  /  "
 Logical: "Y/N" or "T/F"
TDbEdit is simply not good enough anyone know what to do?
0
Comment
Question by:Robert Gilland
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:javiertb
Comment Utility
If you're working with data aware components, just try using a mask (via TField properties) in the TField you want to appear on the TDBEdit box for the date. As for logical fields, you could use a TDBChexBox.
Another way of masking dates would be to use a TMaskEdit component, but this is not data aware.
0
 

Author Comment

by:Robert Gilland
Comment Utility
This answer does not give me what I need
and that is a CLIPPER like DBEDit fields
Check Boxes, require use of mouse, which
only slow down a Data Entry operators
input. Sorry for the Bad Grade But It
wasn't what I was looking for.
0
 
LVL 2

Expert Comment

by:javiertb
Comment Utility
It seems that I don't exactly know what's your problem because if you only want a keyboard enabled dbedit field to accept only 'Y' and 'N', you only have to code OnkeyPress or OnKeyDown events to make them accept only those characters. And what about the date field?
0
 

Accepted Solution

by:
msnell earned 50 total points
Comment Utility
Use masks, as javiertb suggested. They are referred to as pictures in the Database Desktop help.

For dates: "##/##/##"
For logical: "{Y,N}"

See the Database Desktop help for more information
0
 

Author Comment

by:Robert Gilland
Comment Utility
Thankyou, you made me look again at javier's answer
After a long workout of trial and error, I figured
that you have to get into the fields editor by right clicking
on TTAble component.

Only one problem, now how to allow T/F or Y/N it seems
it won't let me do this, but this is not a major concern.

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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