Hi
I have following code is part of main script, But problem is I am expecting it to write to file ( tslog)line by line as it goes thru loop, It does not happen that way code dumps all lines once it exit loop. Any idea ?
.
.
Do Until tsList.AtEndOfStream
strVOLSER = Trim( tsList.ReadLine )
If dicVOLSERs.Exists( strVOLSER ) Then
intRowToUpdate = dicVOLSERs( strVOLSER )
tsLog.WriteLine Join( Array( Now, "|" & strVOLSER & "| => " & intRowToUpdate ), " " )
oExcel.Cells( intRowToUpdate, 5 ) = aChanges( 0 )
oExcel.Cells( intRowToUpdate, 4 ) = aChanges( 1 )
Else
tsLog.WriteLine Join( Array( Now, "|" & strVOLSER & "| => Surprise, surprise" ), " " )
End If
Loop
.
.
.
I have following code is part of main script, But problem is I am expecting it to write to file ( tslog)line by line as it goes thru loop, It does not happen that way code dumps all lines once it exit loop. Any idea ?
.
.
Do Until tsList.AtEndOfStream
strVOLSER = Trim( tsList.ReadLine )
If dicVOLSERs.Exists( strVOLSER ) Then
intRowToUpdate = dicVOLSERs( strVOLSER )
tsLog.WriteLine Join( Array( Now, "|" & strVOLSER & "| => " & intRowToUpdate ), " " )
oExcel.Cells( intRowToUpdate, 5 ) = aChanges( 0 )
oExcel.Cells( intRowToUpdate, 4 ) = aChanges( 1 )
Else
tsLog.WriteLine Join( Array( Now, "|" & strVOLSER & "| => Surprise, surprise" ), " " )
End If
Loop
.
.
.