| | |
How to copy data from serial port to notepad
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
i am using this syntax by using scripting object
Dim fsys As New FileSystemObject
Dim Txtfl As TextStream
'
Set Txtfl = fsys.CreateTextFile(App.Path & "\" & "New Text Document.txt", True)
''Txtfl.WriteLine Text1.Text
Txtfl.WriteLine Text2.Text
it displaying the text2 value on the Form ,on which i working.is there is a mistake in the Path specification i have kept "New Text Document.txt" text in the C:\Program Files\Microsoft Visual Studio\VB98 but is the path is write
thank u
Dim fsys As New FileSystemObject
Dim Txtfl As TextStream
'
Set Txtfl = fsys.CreateTextFile(App.Path & "\" & "New Text Document.txt", True)
''Txtfl.WriteLine Text1.Text
Txtfl.WriteLine Text2.Text
it displaying the text2 value on the Form ,on which i working.is there is a mistake in the Path specification i have kept "New Text Document.txt" text in the C:\Program Files\Microsoft Visual Studio\VB98 but is the path is write
thank u
Hi Jatinder,
Sorry for not following up this post...
OK If u want to use File hanling with "I/O" then, open File this way:
Dim FN As Long
FN = FreeFile
Open "c:\MtFile.txt" For Output As FN
'(Here File will be OverWritten)
Open "c:\MtFile.txt" For Append As FN
'(here u can modify into ths same File)
Add data to file:
Print #FN, "My First File"
If u want to read TextFile:
Open "c:\MyFile.txt" For Input As FN
Dim TStr As String
Line Input FN, TStr
And After all the operations, u need to close them :
Close FN
REgards
Veena
Sorry for not following up this post...
OK If u want to use File hanling with "I/O" then, open File this way:
Dim FN As Long
FN = FreeFile
Open "c:\MtFile.txt" For Output As FN
'(Here File will be OverWritten)
Open "c:\MtFile.txt" For Append As FN
'(here u can modify into ths same File)
Add data to file:
Print #FN, "My First File"
If u want to read TextFile:
Open "c:\MyFile.txt" For Input As FN
Dim TStr As String
Line Input FN, TStr
And After all the operations, u need to close them :
Close FN
REgards
Veena
thank u veena i tryed with u r last post on saturday which work for me .I want to know something about Needdle whih will show some fluxation when it will recieve some data ,how's the car speed shows .Is there is any control in vb6 which can be used .And i am also using Slider control in vertical position ,my problem in this it showing it 0 value at the top and maximam value at the bottom ,I want to change this setting 's i want to bring min value to bottom and max val to the top of the slider ie is from bottom to top bottom should be 0 and top should be 250 is there is any other slider we can use .Important to know about Needle Control.
Hi,
Instead of Slider, why dont u use a
"Flat ScrollBar"
which comes with "Microsoft Windows Common Control 2 6.0"
Make Oientation = 0 (Verical)
and give Min / Max.
For the Visual Speed, Use a Line Control and a Shape(Circle) Control, Place the Line as the adius of circle, Change the CoOrdinates (X1,Y1) of Line Control Proprtionate to the speed. keeping (X2,Y2) Fixed....
REgards
Veena
Instead of Slider, why dont u use a
"Flat ScrollBar"
which comes with "Microsoft Windows Common Control 2 6.0"
Make Oientation = 0 (Verical)
and give Min / Max.
For the Visual Speed, Use a Line Control and a Shape(Circle) Control, Place the Line as the adius of circle, Change the CoOrdinates (X1,Y1) of Line Control Proprtionate to the speed. keeping (X2,Y2) Fixed....
REgards
Veena
![]() |
Similar Threads
- reading data using serial port (Visual Basic 4 / 5 / 6)
- Send data on a serial port (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Clearing Controls & Forms in Access (VBA)
- Next Thread: searching query to meet criteria
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





