Solved

DBEdit: formatting data

Posted on 1998-08-26
2
1,610 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

688 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