NEXT labelThe name of the block for which you want to start the next iteration. If you do not name a block, the AVM starts the next iteration of the innermost iterating block that contains the NEXT statement.The FOR EACH block in this procedure reads a single Customer record on each iteration of the block. If the SalesRep field of a Customer record does not match the SalesRep value supplied to the PROMPT-FOR statement, the NEXT statement causes the AVM to do the next iteration of the FOR EACH block, bypassing the DISPLAY statement.
PROMPT-FOR Customer.SalesRep LABEL "Enter salesman initials"WITH SIDE-LABELS CENTERED.FOR EACH Customer:IF Customer.SalesRep <> INPUT Customer.SalesRep THEN NEXT.DISPLAY Customer.CustNum Customer.Name Customer.City Customer.StateWITH CENTERED USE-TEXT.END.
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |