[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

TdbEdit and Numeric Allignment

Posted on 2006-07-12
1
Medium Priority
?
214 Views
Last Modified: 2010-04-05
I am using some dbedit components connected to a datasource which comes from a table.

When the field is text the data is left alligned in the box, however when the data is numeric it is right alligned.

Is there a way of left alligning the numeric data as this can make a form look rather messy.
0
Comment
Question by:chunky1
1 Comment
 
LVL 26

Accepted Solution

by:
Russell Libby earned 200 total points
ID: 17090252
Yes, just modify the alignment on the field (TField), eg:

  DBEdit1.DataSource.DataSet.FieldByName(DBEdit1.DataField).Alignment:=taLeftJustify;

Regards,
Russell
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

873 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