PMENU Procedure

TEXT Statement

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

Syntax

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 that are prefixed by an at sign (@).
'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.

Optional Arguments

ATTR=attribute
defines the attribute for the text or input field. These are valid attribute values:
  • BLINK
  • HIGHLIGH
  • REV_VIDE
  • UNDERLIN
Restrictions: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.

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
Restrictions: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.

Your hardware might not support all of these colors.