Solved

DBEdit: formatting data

Posted on 1998-08-26
2
1,595 Views
Last Modified: 2009-02-25
I have several DBEdit controls which display data from an underlying Access table. The problem is that the DBEdit truncates the decimal places, which I MUST have 2 of.

For example,

20.00 becomes 20
and
20.50 becomes 20.5

It is essential that I have the decimal placesbut cannot use the currency type. In Access, the fields are set to Double, Standard, 2 decimal places.

Delphi help mentions masks with reference to the DBEdit, but I cannot see how to do this.
0
Comment
Question by:jsweby
2 Comments
 
LVL 2

Accepted Solution

by:
odessa earned 50 total points
ID: 1337802
double click on your table component there is filed editor, if you do not find any fileds, click on add there will be all of your fileds, add them all, and now, by clicking on every filed in Properity bar you will see fileds proerities in Format properity you can specify your desired format e.g. 0.00
0
 
LVL 4

Author Comment

by:jsweby
ID: 1337803
Great, thanks.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

11 Experts available now in Live!

Get 1:1 Help Now