M626
Programmer
- Mar 13, 2002
- 299
Any ideas when I open a sequential file and try to set a number or characters as a Variable, I can't?
I am using this?
Dim AA As Single
sFilePathIn = "SpoolOut.raw"
If Not fsoIn.FileExists(sFilePathIn) Then
fsoIn.CreateTextFile (sFilePathIn)
End If
Set fFileIn = fsoIn.GetFile(sFilePathIn)
Set tStreamIn = fFileIn.OpenAsTextStream(ForReading, TristateFalse)
Do While tStreamIn.AtEndOfStream <> True
sdata = tStreamIn.ReadLine
AA = Mid(sData, 12, 3)
Text2.Text = AA
I am using this?
Dim AA As Single
sFilePathIn = "SpoolOut.raw"
If Not fsoIn.FileExists(sFilePathIn) Then
fsoIn.CreateTextFile (sFilePathIn)
End If
Set fFileIn = fsoIn.GetFile(sFilePathIn)
Set tStreamIn = fFileIn.OpenAsTextStream(ForReading, TristateFalse)
Do While tStreamIn.AtEndOfStream <> True
sdata = tStreamIn.ReadLine
AA = Mid(sData, 12, 3)
Text2.Text = AA