M626
Programmer
- Mar 13, 2002
- 299
- 0
- 0
I would like to be able to set the infile to be any of these but I get an runtime error trying to run it.
'Set The Input Text Stream
vFilePathIn = "ICVER001.ANS" Or _
"ICVER001.ANS" Or _
"ICVER002.ANS" Or _
"ICVER003.ANS" Or _
"ICVER004.ANS" Or _
"ICVER005.ANS" Or _
"ICVER006.ANS" Or _
"ICVER007.ANS" Or _
"ICVER008.ANS" Or _
"ICVER009.ANS"
If Not fsoIn.FileExists(vFilePathIn) Then
fsoIn.CreateTextFile (vFilePathIn)
End If
Set fFileIn = fsoIn.GetFile(vFilePathIn)
Set tStreamIn = fFileIn.OpenAsTextStream(ForReading, TristateFalse)
'Set The Input Text Stream
vFilePathIn = "ICVER001.ANS" Or _
"ICVER001.ANS" Or _
"ICVER002.ANS" Or _
"ICVER003.ANS" Or _
"ICVER004.ANS" Or _
"ICVER005.ANS" Or _
"ICVER006.ANS" Or _
"ICVER007.ANS" Or _
"ICVER008.ANS" Or _
"ICVER009.ANS"
If Not fsoIn.FileExists(vFilePathIn) Then
fsoIn.CreateTextFile (vFilePathIn)
End If
Set fFileIn = fsoIn.GetFile(vFilePathIn)
Set tStreamIn = fFileIn.OpenAsTextStream(ForReading, TristateFalse)