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

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

Clipper like entry fields

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
Robert Gilland
Asked:
Robert Gilland
  • 2
  • 2
1 Solution
 
javiertbCommented:
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
 
Robert GillandAuthor Commented:
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
 
javiertbCommented:
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
 
msnellCommented:
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
 
Robert GillandAuthor Commented:
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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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