共用方式為


SET MESSAGE Command

Defines a message for display in the main Visual FoxPro window or in the graphical status bar, or specifies the location of messages for user-defined menu bars and menu commands.

SET MESSAGE TO [cMessageText]-or-SET MESSAGE TO [nRow [LEFT | CENTER
 | RIGHT]]-or-SET MESSAGE WINDOW [WindowName]

Parameters

  • TO [cMessageText]
    Specifies the message to display.

  • TO [nRow [LEFT | CENTER | RIGHT]]
    Specifies the placement of messages in the main Visual FoxPro window. nRow specifies the row on which messages are displayed. If nRow is 0, no messages are displayed.

    LEFT, CENTER, and RIGHT specify the horizontal screen placement of messages.

    Visual FoxPro ignores a message location specified with SET MESSAGE when the graphical status bar is displayed.

  • WINDOW [WindowName]
    Specifies the window in which messages are displayed. To remove a message from the window and display it on the screen, issue SET MESSAGE WINDOW.

Remarks

SET MESSAGE lets you create a message. It also lets you specify where to display messages created with DEFINE BAR, DEFINE MENU, DEFINE PAD, or DEFINE POPUP.

By default, messages are placed on the last line of the main Visual FoxPro window if the character-based status bar is displayed. If the graphical status bar is displayed, messages are placed in the status bar.

The SET MESSAGE line is reset to the last line of the main Visual FoxPro window whenever SET DISPLAY is issued.

SET MESSAGE TO without any arguments places messages in the graphical status bar.

See Also

SET DISPLAY | SET STATUS | SET STATUS BAR