Previous Page | Next Page

The PMENU Procedure

TEXT Statement


Specifies text and the input fields for a dialog box.
Restriction: Can be used only after a DIALOG statement.
Featured in: Collecting User Input in a Dialog Box

TEXT #line @column field-description
<ATTR=attribute> <COLOR=color>;


Required Arguments

column

specifies the starting column for the text or input field.

field-description

defines how the TEXT statement is used. The field-description can be one of the following:

LEN=field-length

is the length of an input field in which the user can enter information. If the LEN= argument is used, then the information entered in the field is inserted into the command string of the previous DIALOG statement at field locations prefixed by an at sign (@).

Featured in: Collecting User Input in a Dialog Box
'text'

is the text string that appears inside the dialog box at the location defined by line and column.

line

specifies the line number for the text or input field.


Options

ATTR=attribute

defines the attribute for the text or input field. Valid attribute values are

  • BLINK

  • HIGHLIGH

  • REV_VIDE

  • UNDERLIN

Restriction: This option is not available in all operating environments. If you include this option and it is not available in your operating environment, then the option is ignored.
Restriction: Your hardware might not support all of these attributes.
COLOR=color

defines the color for the text or input field characters. Here are the color values that you can use:

BLACK BROWN
GRAY MAGENTA
PINK WHITE
BLUE CYAN
GREEN ORANGE
RED YELLOW

Restriction: This option is not available in all operating environments. If you include this option and it is not available in your operating environment, then the option is ignored.
Restriction: Your hardware might not support all of these colors.

Previous Page | Next Page | Top of Page