Handle empty and null values in VB console
This commit is contained in:
parent
37eb9d70fe
commit
a53905dc05
|
@ -14,6 +14,8 @@ Private Sub ConsoleLog(message, color)
|
|||
.color = color
|
||||
End If
|
||||
End With
|
||||
If IsEmpty(message) Then message = "[Empty]"
|
||||
If IsNull(message) Then message = "[Null]"
|
||||
entry.appendChild(document.createTextNode(CStr(message)))
|
||||
output.appendChild(entry)
|
||||
End Sub
|
||||
|
|
Loading…
Reference in New Issue