Handle empty and null values in VB console

This commit is contained in:
~lucidiot 2022-09-22 22:12:43 +02:00
parent 37eb9d70fe
commit a53905dc05
1 changed files with 2 additions and 0 deletions

View File

@ -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