Progress
Programming
Handbook
Programming Example
The following example consists of three procedure files: a main routine, a driver, and a third procedure file that becomes a super procedure of the driver.
The main routine, procedure file
p-pomain.p
, runs the driver procedure persistently:
The driver, procedure file
p-podrvr.p
, runs the third procedure file persistently, makes it a super procedure of itself, defines the internal procedure sample1, and defines the user-defined functions sample2, GetPartName, and SetPartName:
The third procedure file,
p-posupr.p
, defines a new version of the internal procedure sample1 and a new version of the user-defined function sample2:
To start the example, run
p-pomain.p
.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |