|
ENABLE — Enables the specified field-level widgets (in this case fill-in fields) for input
|
|
WAIT-FOR — Blocks for input and processes all ABL events until a specific ABL event occurs, in this case the GO universal key function event
|
|
DISABLE — Disables the specified field-level widgets (in this case fill-in fields) for input
|
PROMPT-FOR
[ STREAM stream | STREAM-HANDLE handle ]
[ UNLESS-HIDDEN ]
{ { field
[ format-phrase ]
[ WHEN expression ]
}
| { TEXT ( { field
[ format-phrase ]
[ WHEN expression ]
} ...
)
}
| { constant
[ { AT | TO } n ]
[ VIEW-AS TEXT ]
[ FGCOLOR expression ]
[ BGCOLOR expression ]
[ FONT expression ]
}
| SPACE [ ( n ) ] | SKIP [ ( n ) ] | ^
} ...
[ GO-ON ( key-label ... ) ]
[ IN WINDOW window ]
[ frame-phrase ]
[ editing-phrase ]
|
PROMPT-FOR
[ STREAM stream | STREAM-HANDLE handle ]
[ UNLESS-HIDDEN ]
record [ EXCEPT field ... ]
[ IN WINDOW window ]
{ [ frame-phrase ] }
|
Specifies the handle to a stream. If handle it is not a valid handle to a stream, the AVM generates a run-time error. Note that stream handles are not valid for the unnamed streams. See the chapter on alternate I/O sources in
OpenEdge Development: Programming Interfaces for more information on streams and stream handles.
This field parameter is demonstrated in the following program:
Prompts for the field only when expression has a value of TRUE. Here,
expression is a field name, variable name, or expression that evaluates to a LOGICAL value.
Table 56 lists the keys you can use within a TEXT field and their actions.
In this procedure, the s-com, or Order
Comments field is a TEXT field. Run the following procedure and enter text in the field to see how the TEXT option works:
constant [ AT n
| TO
n ] [ VIEW-AS TEXT
] [ FGCOLOR
expression ]
[ BGCOLOR
expression ] [ FONT
expression ]
Specifies a literal value that you want displayed in the frame. If you use the AT option, n is the column in which you want to start the display. If you use the TO option,
n is the column in which you want to end the display. You can use the BGCOLOR, FGCOLOR, and FONT options to define the colors and font in which the constant is displayed. If you use the VIEW-AS TEXT option, the constant is displayed as a text widget rather than a fill-in field.
Identifies the number (n) of blank spaces to insert after the field is displayed. The
n can be 0. If the number of spaces you specify is more than the spaces left on the current line of the frame, a new line is started and any extra spaces are discarded. If you do not use this option or
n, one space is inserted between items in the frame.
Identifies the number (n) of blank lines to insert after the field is displayed. The
n can be 0. If you do not use this option, the AVM does not skip a line between expressions unless the expressions do not fit on one line. If you use the SKIP option, but do not specify
n, or if
n is 0, the AVM starts a new line unless it is already at the beginning of a new line.
[ label : ] EDITING: statement ... END
|
The r-prmpt.p procedure requests a customer number from the user and stores that number in the screen buffer. The FIND statement reads a record from the Customer database table.
The r-prmpt2.p procedure requests the initials of a sales representative and stores those initials in the screen buffer. The FIND statement uses the initials stored in the screen buffer to read a record from the
SalesRep database table. After finding the record, the procedure displays sales rep information.
|
In the context of the .NET blocking method, System.Windows.Forms.Application:Run( ), if you directly or indirectly execute the PROMPT-FOR statement while displaying a non-modal ABL window, in certain contexts (such as within a user-defined function or non- VOID method) this statement execution raises the STOP condition. For more information on the .NET Application:Run( ), method, see the reference entry for the WAIT-FOR statement (.NET and ABL).
|