Hi
I pretty new to Visual basic 6, having only dealt with VBA I am after some advice about writing the results from my project to a text file. I have successfully written the code (which is pretty simple stuff I know) to write the data to the text file but I need to keep the spaces between each entry the same size so that I can transfer/convert it into excel at a later date. Is there a way to keep the spacing between the data the same for every row that is entered.
This is difficult to explain but I have a list of checkbox's that people will either tick one or all of them. The results from these are either 1 or 0. Then I have their username from Windows, the date, the time and then 3 text box for free text. The problem I have is the text box results, I dont mind setting the max length in the text box parameters but this would cause a problem if they only entered a small amount of text.
I will try and show an example of what I mean.
Data would be something like this
simon 01\02\2007 0 0 1 1 1 1 0 0 Text1 Text2 Text3
simon 02\02\2007 0 1 0 1 1 0 0 1 Moretext1 text 2 text3
What I would like to see is:
simon 01\02\2007 0 0 1 1 1 1 0 0 Text1 Text2 Text3
simon 02\02\2007 0 1 0 1 1 0 0 1 Moretext1 text 2 text 3
Bascially if you try to convert the first example in Excel I could not line up the columns on 'Text1, Text2' with More text1 and text2.
I hope this explains it for you all and hope that you can help.
Many Thanks
Simon
I pretty new to Visual basic 6, having only dealt with VBA I am after some advice about writing the results from my project to a text file. I have successfully written the code (which is pretty simple stuff I know) to write the data to the text file but I need to keep the spaces between each entry the same size so that I can transfer/convert it into excel at a later date. Is there a way to keep the spacing between the data the same for every row that is entered.
This is difficult to explain but I have a list of checkbox's that people will either tick one or all of them. The results from these are either 1 or 0. Then I have their username from Windows, the date, the time and then 3 text box for free text. The problem I have is the text box results, I dont mind setting the max length in the text box parameters but this would cause a problem if they only entered a small amount of text.
I will try and show an example of what I mean.
Data would be something like this
simon 01\02\2007 0 0 1 1 1 1 0 0 Text1 Text2 Text3
simon 02\02\2007 0 1 0 1 1 0 0 1 Moretext1 text 2 text3
What I would like to see is:
simon 01\02\2007 0 0 1 1 1 1 0 0 Text1 Text2 Text3
simon 02\02\2007 0 1 0 1 1 0 0 1 Moretext1 text 2 text 3
Bascially if you try to convert the first example in Excel I could not line up the columns on 'Text1, Text2' with More text1 and text2.
I hope this explains it for you all and hope that you can help.
Many Thanks
Simon