xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

@...PROMPT

Displays a menu item for a text mode menu.

Syntax

@ <nRow>, <nCol> PROMPT <cMenuItem> ;
               [MESSAGE <bcMessage>]

Arguments

@ <nRow>, <nCol>
Numeric values indicating the screen coordinates for the display of <cMenuItem>.
PROMPT <cMenuItem>
A character string holding the menu item of the text mode menu.
MESSAGE <bcMessage>
Optionally, a character string can be associated with <cPrompt> which is displayed as a message when SET MESSAGE is set to a screen row larger than zero. Instead of a character string, a code block can be specified. In must return a character string.

Description

The @...PROMPT command is used to define a single menu item of a simple text mode menu. A text mode menu is usually built by specifying the @...PROMPT command multiple times before the MENU TO command is issued to activate the menu.

The screen cursor is located one column to the right of <cMenuItem> after @...PROMPT has displayed the menu item.

Note:  For an example of @...PROPMT usage see the MENU TO command.

Info

See also:AChoice(), MENU TO, SET MESSAGE, SET WRAP, SetColor()
Category: Input commands
Source:rtl\menuto.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe