![]() | ![]() | ![]() |
| |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
![]() |
| | Tools |
| | #1 |
|
i had write a vb program that can receive serial data, now i want to display the data at text box and within 10 lines then save it as text file, can anyone guide me??? thank
| |
| |
| | #2 | |
| Quote:
| ||
| |
| | #3 |
|
thank for your reply Nigel, i had wrote the vb program, my program can receive the serial data and display it . how can i make my program to auto save every 10 receive data into a text file.thank
| |
| |
| | #4 | |
| Quote:
| ||
| |
| | #5 | |
| Quote:
ops: ?) it would be better to buffer the entire data first (for 10 receives) then flush them to file , rather that (opennig and ) writing at each receive.
__________________ Gods own Country Incredible !ndia www.flickr.com/photos/_akg/ "Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime." | ||
| |
| | #6 |
|
thank you akg, now my program is display the receive data on a label. and now i want to change it to display on text box and save the it as a textfile. what can i do???
| |
| |
| | #7 |
|
If your are having trouble with VB, maybe look at powerbasic.com, the PC/CC program is more like a DOS console program.
| |
| |
| | #8 | |
| Quote:
replace label1.text to text1.txt the file open command is like file number = Open <filename> <filemode> , u may have to refer msdn
__________________ Gods own Country Incredible !ndia www.flickr.com/photos/_akg/ "Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime." | ||
| |
| | #9 |
|
receiving is as simple as (taken from working program): Code: Private Sub MSComm1_OnComm() Text1.Text = Text1.Text + MSComm1.Input End Sub | |
| |
|
| Tags |
| problem, rs232 |
| Thread Tools | |
| Display Modes | |
| |