Solved

TdbEdit and Numeric Allignment

Posted on 2006-07-12
1
191 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 50 total points
Comment Utility
Yes, just modify the alignment on the field (TField), eg:

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

Regards,
Russell
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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

10 Experts available now in Live!

Get 1:1 Help Now