Okay, so it's supposed to look something like that but I can't figure out how to get the output to align around the decimal. Basically, I want all the decimals to be vertical down the column and the numbers placed on either side of those decimals. I was looking @ the format command for decimals but wasn't sure how to implement it. I tried some confusing stuff w/ trying to to Space(15-Val(Item1.Text)) and stuff like that... but it didn't quite work.

oh, and there are two more columns in that table too. So there are a total of four columns, item, qty, unit cost, and subtotal. I need them all to vertically align according to the vertical alignment of the decimals, but I dunno how to do that. Btw, this is a print to screen command.

However why do you want to output text in a table format when you could just output to a grid ocx?

__________________
"Game developers are like simple chemicals. (No, not because they're cheap and smelly.) In the right combination, they can make miracles. Screw up the mix, and you can blow up a city." - How to Screw Up a Perfectly Good Game Company in Ten Easy Steps, www.gamedev.net

lol, this is only my 7th week into my first quarter of Visual Basic programming. Can someone point me to a link about MSFlexGrid control? Actually, I found another method from Microsoft's website that did something like (I'm typing from memory @ the moment):

Format$((Format$(strVar, "##00.00"),"@@@@@@")

It works perfectly after implementing the correct Space(#). But the only thing I don't understand is how the the parameter of "##00.00" works... I know # is reserved for a digit, but what does the 0 represent?

Anyhow, originally I was doing it this way:

Tab(#)strVar1; Tab(#)strVar2

But that didn't line stuff up to the decimal. So yeah, can someone give me some light into how the ##00.00 and @ symbols work in this function?

right click the toolbox and click on components then check off the flex grid and click ok. From there drag your grid onto the form and give it a name. You can then treat it like a black box and have it working in no time. The easiest way to learn how to use it is to look at its properties and functions through the object browser.

__________________
"Game developers are like simple chemicals. (No, not because they're cheap and smelly.) In the right combination, they can make miracles. Screw up the mix, and you can blow up a city." - How to Screw Up a Perfectly Good Game Company in Ten Easy Steps, www.gamedev.net

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com