Progress
Programming
Handbook
Examples
The following external procedure defines and calls three internal procedures. The external procedure
p-intprc.p
runs the internal procedure getcust for each customer number you enter. The internal procedure getcust runs getord and getord runs getitem. The result is that you see the order–line and item information if the customer exists and has orders:
The next two procedures duplicate the functionality of
p-intprc.p
by separating the internal procedures and the update loop into separate external procedures. The procedure defining the internal procedures,p-inprc1.p
passes its procedure handle top-exprc3.p
. Thus,p-exprc3.p
runs getcust inp-inprc1.p
:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |