|
AddComment |
|
|
Adds a user-defined text to the communication data window and log file.
Return Value
Void
Syntax
DL.AddComment [comment] [, timeStampAfterComment] [, lineBreakAndPadding]
The AddComment method syntax has these parts:
Remarks
You cannot use ASCII control characters like decimal code 08 (Backspace) to emulate terminal functions / display formatting. The only exception is decimal code 07 (Bell), which can be use to produce a 'beep signal', depending on your Windows sound scheme.
Example
' Example AddComment
DL.ClearCommWindows DL.AddComment "Hello World!" ' Additional line break DL.AddComment ' Use the '&' operator to concatenate strings and other variables r1 = 10 r2 = 20 DL.AddComment "Result 1 = " & r1 & " Result 2 = " & r2 ' The VBScript constant vbCrLf can be used for an ' additional line break, too DL.AddComment DL.AddComment "Result 1 = " & r1 & vbCrLf DL.AddComment "Result 2 = " & r2
' Disabling the line break and padding characters gives you ' better control over the actual output DL.AddComment vbCrLf + "Here's some bit of info", False, False DL.AddComment "rmation. " + vbCrLf, False, False
' A "beep" signal for user notification DL.AddComment Chr(7)
|