Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DBEdit: formatting data

Posted on 1998-08-26
2
Medium Priority
?
1,615 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

597 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