borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (TextBox & 4-next loop)Next Topic (How can I change the path of a helpfile?) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Formatting Output
Poster Message
Socrates
Level: Trainee

Registered: 30-11-2004
Posts: 2

icon Formatting Output

Hi,
I am using VB6 to write an application which reads lines of numerical data from one file and writes some of it to another file.  The data is read one line at a time using Line Input #1 and can be written using either Write #2 or Print #2. All data to be written is numeric (some Integer and some Single precision floating point), and I want the output to appear in neatly arranged columns.  It must be comma delimited, right justified and all decimal numbers must be reported to two decimal places with trailing zeroes if necessary.  Unfortunately, I cannot find a way to achieve this.  I have tried using Format and Format$, embedded Tabs, Rset, and a few other dead ends.  The problem appears to be so fundamental!  Can anybody please help to set me in the right direction?
Thanks,
Steve

30-11-2004 at 12:10 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Formatting Output

will this topic be of any help?

____________________________
If you find the answer helpful, please mark this topic as solved.

30-11-2004 at 07:45 PM
View Profile Send Email to User Show All Posts | Quote Reply
Socrates
Level: Trainee

Registered: 30-11-2004
Posts: 2
icon Re: Formatting Output

Thanks Goran,  Apologies for the delay.  Steve.

06-12-2004 at 08:00 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Formatting Output
Previous Topic (TextBox & 4-next loop)Next Topic (How can I change the path of a helpfile?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder