?
Solved

Formatting output

Posted on 2004-09-12
2
Medium Priority
?
207 Views
Last Modified: 2010-04-15
Hi,

I'm trying to format the output of a string so that it will create columns when displayed in a listbox.  For example, I'd like:

First Name, LastName, Age information on one string, but spaced to look orderly when there are multiple rows.  I tried simply using "\t" but soon realized that wouldn't work.

I'd like it to look like this:

Frank             Smith                42
Joseph           Anderson           55

Please give me any advice you can.

Thanks,
RA
0
Comment
Question by:ba272
[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 22

Expert Comment

by:cookre
ID: 12040161
I tend to take the lazy approach by using a fixed width type face.  My second choice is a data grid.
0
 
LVL 10

Accepted Solution

by:
smegghead earned 2000 total points
ID: 12040190
Use a listview, this has the option of adding columns.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

762 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