Progress
Language Reference
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.
SYNTAX
field
Indicates the name of the input field in which you want to place the cursor the next time the user supplies input to the frame. If the field you name is not an input field in the frame, Progress disregards the NEXT-PROMPT statement.
frame-phrase
Specifies the overall layout and processing properties of a frame. For more information on frame-phrase, see theFrame Phrase reference entry.
EXAMPLEThis procedure lets you update customer information. If you do not enter a value for contact, Progress 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 Progress ignores the NEXT-PROMPT statement.
- The NEXT-PROMPT statement can affect default frame layout. In this procedure, Progress 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, Progress prompts for b first and a second.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |