M
MikeB
This Debug.Print statement works perfectly.
'Debug.Print "Game(" & strGameNumber & ")" _
; Tab(12); "Match(" & strmatchNumber & ")" _
; Tab(25); "White:" & "(" & strWhiteId & ")" _
; White.Fname & " " & White.Lname _
; "(" & White.Rating & ")" & " Games(" & White.Games
& ")" _
; Tab(70); "Black:" & "(" & strBlackId & ")" _
; Black.Fname & " " & Black.Lname _
; "(" & Black.Rating & ")" & "Games(" & Black.Games &
")" _
; dblWhiteScore, dblBlackScore
I have a routing that is trying to write the same data to a file:
Sub prStr(ByVal indent As Long, ByVal str As String)
intLineCounter = intLineCounter + 1
Print #1, Time(), String(indent, "-") & str
If (intLineCounter Mod 100) = 0 Then
Debug.Print "Printing line " & intLineCounter & " at " & Now()
End If
End Sub
But I'm getting a compile error (various, depending on exactly what
I'm trying at the time when I do this:
prStr intNestLevel, "Game(" & strGameNumber & ")" _
; Tab(12); "Match(" & strmatchNumber & ")"
' Tab(25); "White:" & "(" & strWhiteId & ")" & _
' White.Fname & " " & White.Lname & _
' "(" & White.Rating & ")" & " Games(" & White.Games
& ")" & _
' Tab(70); "Black:" & "(" & strBlackId & ")" & _
' Black.Fname & " " & Black.Lname& _
' "(" & Black.Rating & ")" & "Games(" & Black.Games &
")" & _
' dblWhiteScore & " " & dblBlackScore
Current error is "Expected: End of statement
Previous error was: Expected Expression when the statement was as
follows:
prStr intNestLevel, "Game(" & strGameNumber & ")" & _
Tab(12) & "Match(" & strmatchNumber & ")"
I'm trying to find a way to print tab-delineated data to a file.
Thanks.
'Debug.Print "Game(" & strGameNumber & ")" _
; Tab(12); "Match(" & strmatchNumber & ")" _
; Tab(25); "White:" & "(" & strWhiteId & ")" _
; White.Fname & " " & White.Lname _
; "(" & White.Rating & ")" & " Games(" & White.Games
& ")" _
; Tab(70); "Black:" & "(" & strBlackId & ")" _
; Black.Fname & " " & Black.Lname _
; "(" & Black.Rating & ")" & "Games(" & Black.Games &
")" _
; dblWhiteScore, dblBlackScore
I have a routing that is trying to write the same data to a file:
Sub prStr(ByVal indent As Long, ByVal str As String)
intLineCounter = intLineCounter + 1
Print #1, Time(), String(indent, "-") & str
If (intLineCounter Mod 100) = 0 Then
Debug.Print "Printing line " & intLineCounter & " at " & Now()
End If
End Sub
But I'm getting a compile error (various, depending on exactly what
I'm trying at the time when I do this:
prStr intNestLevel, "Game(" & strGameNumber & ")" _
; Tab(12); "Match(" & strmatchNumber & ")"
' Tab(25); "White:" & "(" & strWhiteId & ")" & _
' White.Fname & " " & White.Lname & _
' "(" & White.Rating & ")" & " Games(" & White.Games
& ")" & _
' Tab(70); "Black:" & "(" & strBlackId & ")" & _
' Black.Fname & " " & Black.Lname& _
' "(" & Black.Rating & ")" & "Games(" & Black.Games &
")" & _
' dblWhiteScore & " " & dblBlackScore
Current error is "Expected: End of statement
Previous error was: Expected Expression when the statement was as
follows:
prStr intNestLevel, "Game(" & strGameNumber & ")" & _
Tab(12) & "Match(" & strmatchNumber & ")"
I'm trying to find a way to print tab-delineated data to a file.
Thanks.