Progress
Programming
Handbook
Externally Defined User-defined Functions
Progress lets procedures reference user-defined functions whose definitions reside in external procedures. The following example, which consists of two procedures, illustrates this.
The first procedure,
p-udfdef.p
, defines doubler():
The second procedure,
p-udf3.p
, runs the first procedure persistently, declares doubler(), references it, and deletes the persistent procedure—in that order:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |