NEXT-PROMPT statement
Specifies the field in which you want to position the cursor during the next input operation that involves that field in a frame.
Note: Does not apply to SpeedScript programming.Syntax
field
frame-phrase
Specifies the overall layout and processing properties of a frame. For more information onframe-phrase
, see theFrame phrase reference entry.ExampleThis procedure lets you update Customer information. If you do not enter a value for Customer.Contact, the AVM positions the cursor in the Contact field when the UPDATE statement is processed following the UNDO, RETRY of the FOR EACH block.
Notes
- NEXT-PROMPT is useful in an EDITING phrase because it can dynamically reposition the cursor depending on input from the user.
- When you have to do complex field checking that you are unable to do in a Dictionary validation expression or in a VALIDATE option of the Frame phrase, use NEXT-PROMPT to position the cursor after detecting an error.
- If the next data entry statement involving the frame specified with NEXT-PROMPT does not use the indicated NEXT-PROMPT field, then the AVM ignores the NEXT-PROMPT statement.
- The NEXT-PROMPT statement can affect default frame layout. In this procedure, the AVM prompts for a and b (in that order):
However, if you include NEXT-PROMPT b before the update statement, as shown in the following procedure, the AVM prompts for b first and a second:
See also
OpenEdge Release 10.2B
|