Progress
Language Reference


NEXT-PROMPT Statement

Interfaces
OS
SpeedScript
All
All
No

Specifies the field in which you want to position the cursor during the next input operation that involves that field in a frame.

SYNTAX

NEXT-PROMPT field [ frame-phrase ] 

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.

EXAMPLE

This 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.

r-nprmpt.p
FOR EACH customer:
    UPDATE customer WITH 2 COLUMNS.
    IF contact EQ " "
    THEN DO:
       MESSAGE "You must enter a contact".
       NEXT-PROMPT contact.
       UNDO, RETRY.
    END.
END. 

NOTES

SEE ALSO

EDITING Phrase, Frame Phrase


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095