Skip to main content

ShowPrompt

Use this Longview Application Framework function in a procedure document to display a prompt that users can interact with. This function is specific to Longview Apps. This function is not used in model documents. The window title of messages and prompts is specified in your .lvapp file with the <description> parameter. The look and feel of messages and prompts is specified in your .lvapp file with the <theme> parameter.

For more information, see Configuring Longview Apps.

Note: You must use the ShowPrompt function with Set Variable to set the value to the variable to which the function will be returning data. See the syntax example below. You cannot use the ShowPrompt function in batch mode.

Syntax:

SHOWPROMPT ("Message", Button)

where:

  • Message is the message to display.
  • Button can be one of the following values:
    Value Description

    OKCancel

    Displays OK and Cancel buttons below the message.

    YesNo

    Displays Yes and No buttons below the message.

    YesNoCancel

    Displays Yes, No, and Cancel buttons below the message.

Syntax example:

CREATE VARIABLE msgboxResult AS String

SET VARIABLE msgboxResult = SHOWPROMPT("message box test",YesNoCancel)

Was this article helpful?

We're sorry to hear that.