This code has a comment at the end of the "If...then" line.
If strTempValue = "C" Then ' Celsius
strCommand = "DEGC"
Else 'Fahrenheit
strCommand = "DEGF"
End If
This results in an error message being displayed
"Block warning: End of IF block found, but no matching beginning."
The error message will go away if the trailing comment is removed.
If strTempValue = "C" Then
strCommand = "DEGC"
Else 'Fahrenheit
strCommand = "DEGF"
End If
Should we simply avoid placing a comment on the same line after the "then" keyword?
Bookmarks