Solved

Left aligning Numeric  columns  in  MS Flexgrid

Posted on 2004-10-07
5
233 Views
Last Modified: 2008-02-01
By  Default text alignment  (Numbers)  are  right  justified  in MS Flexgrid.
Plz  tell  the solution   for  left  justifying  to  numbers.

|----------------|---------------|
| Name           | Age            |
|----------------|---------------|
| Raja             |              20 |
| Ravi             |              25 |
| Raju             |              30 |
|----------------|---------------|

For instance, in the above table "Age" column is aligned to right by default. I've to left  align it.

TIA
ponnusamy
0
Comment
Question by:C_Ponnusamy
  • 2
5 Comments
 
LVL 1

Expert Comment

by:mrloumrlou
ID: 12249701
Try:
Format$(123, "@@@@@@")   --------- right justify "   123"
Format$(123, "!@@@@@@")  --------- left justify   "123   "
0
 
LVL 1

Expert Comment

by:mrloumrlou
ID: 12249842
or just add a space before your number.

" " & iTheNumber
0
 

Author Comment

by:C_Ponnusamy
ID: 12256706
Dear mrloumrlou ,

                     Format$(123, "@@@@@@")   --------- right justify "   123"
                      Format$(123, "!@@@@@@")  --------- left justify   "123   "

       is  not  working.  it  produces  an  error.  
 
I have i  find  solution  for  my  question.
We  directly  use  "SetcellAlignment"   function   in  the  program.
 U  can see  details  of this  in  the  following  link location
http://briz.infotools.ru/html/027/grid_cells.htm


Thanks & Regards,
Ponnusamy.C
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12502628
PAQed, with points refunded (80)

modulo
Community Support Moderator
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

23 Experts available now in Live!

Get 1:1 Help Now