Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Misalignment of Columns

Question:
I try to align numeric numbers in columns (to be right-justified). Hwvr, some of the numbers don't right-justify very well. In my example, most of these numbers hve 2 digits. Typically, numbers with 3-digits srick out a little to the right. Alpha values also stick out to the right. I can't figure out why. Can you help me? This is my first VB project at work. Don't want to mess up this opportunity.

Answer:
I'll assume that your code works since you are getting some output. What font are you using? I would imagine that you are using a proportional font like Times or something else that doesn't use a fixed width like Courier New. Try it with a fixed-width font and I would imagine that things will line up.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date