Convert String to Double - VB. Ask Question 19. Is there an efficient method in VB to check if a string can be converted to a double? Asking my Professor to create a Google Account to submit a Letter of Recommendation for me How do computers 'solve' the three-body-problem? Character Representation. Dictionary Ordering. Output of computing results is controlled by a simple double click anyplace on the output form. Visual BASIC 6.0 is a powerful object oriented programming language. You should save this code to use every time you write a BASIC program.
What method exactly are using to write to the file? You have posted no code, but I'm guessing that you are using 'write' to write the information to the file. Change your write command to print.
Print #1, 'your data' should work fine. Here is the code example that I just built to test this theory, (which was successful): Private Sub FormLoad Open 'c: output.txt' For Output As #1 Write #1, 'write test' Print #1, 'print test' Close #1 For Each XFrm In Forms Unload XFrm Next XFrm End Sub This works great on my box.
I'm pretty sure that this idea spans as far back as QBasic, but I'm not sure if it goes on through.NET (since I don't use.NET). Let me know if this helps to solve your problem.