Hello--
the following code is giving me:
Operator '=' is not defined for types 'integer' and 'char' ---
what should it be?
Private Shared Function NextLine(ByVal stream As StreamReader) As String
Dim stemp As Integer = stream.Read()
Dim sReturn As String = ""
While stemp <> -1 AndAlso stemp <> Chr(10)
'W3C SPECIFIC
If stemp = "["c Then
stemp = """"c
End If
If stemp = "]"c Then
stemp = """"c
End If
sReturn += CChar(stemp)
stemp = stream.Read()
End While
Return sReturn
End Function
the following code is giving me:
Operator '=' is not defined for types 'integer' and 'char' ---
what should it be?
Private Shared Function NextLine(ByVal stream As StreamReader) As String
Dim stemp As Integer = stream.Read()
Dim sReturn As String = ""
While stemp <> -1 AndAlso stemp <> Chr(10)
'W3C SPECIFIC
If stemp = "["c Then
stemp = """"c
End If
If stemp = "]"c Then
stemp = """"c
End If
sReturn += CChar(stemp)
stemp = stream.Read()
End While
Return sReturn
End Function