Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Lots of data

Status
Not open for further replies.

enque

Civil/Environmental
Dec 7, 2002
20
Im working in some hydraulics calcs.(using lots of loops) that produces lots of
data, where can I send this data to be easy readable.
I tried with rictextboxes but it only accepts one line.
I was triying to send the data to a blank page but the help is horible.
What Can I do?
 
Replies continue below

Recommended for you

How about writing the data to a text file, then when complete, display the file in a text box or fire up notepad and display it in that?
 
How can I do that?
 
Well to start with read the VB help file related to the "Print" statement and look at the example (I've copied it below). Then look up the "Input" statement.

From the VB5 help file

This example uses the Print # statement to write data to a file.

Open "TESTFILE" For Output As #1 ' Open file for output.

Print #1, "This is a test" ' Print text to file.
Print #1, ' Print blank line to file.
Print #1, "Zone 1"; Tab ; "Zone 2" ' Print in two print zones.
Print #1, "Hello" ; " " ; "World" ' Separate strings with space.
Print #1, Spc(5) ; "5 leading spaces " ' Print five leading spaces.
Print #1, Tab(10) ; "Hello" ' Print word at column 10.

' Assign Boolean, Date, Null and Error values.
Dim MyBool, MyDate, MyNull, MyError
MyBool = False : MyDate = #February 12, 1969# : MyNull = Null
MyError = CVErr(32767)
' True, False, Null, and Error are translated using locale settings of
' your system. Date literals are written using standard short date
' format.
Print #1, MyBool ; " is a Boolean value"
Print #1, MyDate ; " is a date"
Print #1, MyNull ; " is a null value"

Print #1, MyError ; " is an error value"

Close #1 ' Close file.

 
You could also check that your RichTextBox has its MultiLine property set to True. It should then accept as much text as you need

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting
 
usually I output to a *.dat file; i often work with databases of a few million columns. Avoid plotting in Excel though! this has always been my main problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor