AddLine Method

Adds a horizontal line to the dialog box.

object.AddLine
 

Arguments

object

Required.  A variable containing a dialog object created by calling CreateObject or new ActiveXControl.

Remarks
None

Example

Sub main
  ' Create the dialog box
  Set Dialog = CreateObject("TPFSoftware.ScriptDialog")
  ' Add a message
  Dialog.AddText "Please press a button"
  ' Add a horizontal line
  Dialog.AddLine
  ' Add a row of buttons
  Dialog.AddButtons "button", Array("OK", "Cancel")
  ' Display the dialog box
  Set Result = Dialog.Execute
End Sub