PROMPT()

From Recital Documentation Wiki
Revision as of 15:47, 28 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


Purpose

Function to return the prompt of the most recently selected pop-up or menu option


Syntax

PROMPT()


See Also

ACTIVATE POPUP, BAR(), BARCOUNT(), BARPROMPT(), DEFINE BAR, DEFINE MENU, DEFINE POPUP, MENU(), MENUITEM(), ON BAR, ON EXIT BAR, ON EXIT MENU, ON EXIT POPUP, ON POPUP, ON SELECTION BAR, ON SELECTION MENU, ON SELECTION POPUP, PAD(), POPUP(), SET COMPATIBLE


Description

The PROMPT() function returns the prompt of the most recently selected Xbase style pop-up or menu option. If there are no active pop-ups or the [ABANDON] key was pressed, the PROMPT() function will return a null string. If the prompt has been defined using the DEFINE POPUP command, the PROMPT() function will return the selected menu option as a character string. The command SET COMPATIBLE must be set ON when using Xbase style menus.

Example

define popup popup_4;
from 1,26
define bar 1 of popup_4;
prompt "Bar 1"
define bar 2 of popup_4;
prompt "Bar 2"
define bar 3 of popup_4;
prompt "Bar 3"
on selection popup popup_4 set message to PROMPT()
set status on
activate popup popup_4


Products

Recital Mirage Server, Recital Terminal Developer