Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying a string with proper alignment

Status
Not open for further replies.

realace112

Programmer
Jul 28, 2002
8
US
Suppose I have a long character string like this:

"ID: 4343 Value: $4,234 Method: App;
ID: 23 Value: $350 Method: Val;
ID: 232 Value: $250,000 Method: Seg;"

the fields are all out of alignment. here is what I am trying to make it look like.
"ID: 4343 Value: $4,234 Method: App;
ID: 23 Value: $350 Method: Val;
ID: 232 Value: $250,000 Method: Seg;"

I am getting these values back from xml and just concatenating each value to the string to create this one long string. But I'd like to figure out how to align them properly. Is there any special formatting function I can use? By the way, this is in VBScript. Thanks



 
Check out faq222-2244 to get the best from these forums - you're in the VB5/6 forum at present!

forum329 is specifically for VBScript questions

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top