Msg.Text (property)


Msg.Text [= newtext$]


Changes the text within an open message dialog box (one that was previously opened with the Msg.Open method).


The message dialog box is not resized to accommodate the new text.

A runtime error will result if a message dialog box is not currently open (using Msg.Open).


This example creates a modeless message box, leaving room in the message text for the record number. This box contains a Cancel button.

Sub Main()

  Msg.Open "Reading Record",0,True,False

  For i = 1 To 100

    'Read a record here.

    'Update the modeless message box.

    Sleep 100

    Msg.Text ="Reading record " & i

  Next i


End Sub

See Also

Msg.Close (method); Msg.Open (method); Msg.Thermometer (property).

More information