DlgText statement
DlgText “ControlName”, String
This statement is used to set or change the text of a dialog control.
The parameter ControlName is the name of the control on the dialog box. The parameter String is the value to set it to.
Example
If ControlID$ = "Chk2" Then
   DlgText "History", "Push to display nested dialog"
End If