Progress
Programming
Handbook


Remotely Defined User-defined Functions

Progress lets procedures reference user-defined functions whose definitions reside in remote procedures. (A remote procedure is a procedure that runs in a Progress AppServer on a remote machine.) Remotely-defined user-defined functions have one restriction: they cannot contain buffer parameters.

NOTE: If a remote procedure defines a user-defined function that contains one or more buffer parameters, the local procedure cannot reference that user-defined function. The remote procedure, however, can, because to the remote procedure, the user-defined function is local.

Remotely-defined user-defined functions are identical to externally-defined user-defined functions, except that the RUN statement uses the ON SERVER option, and that buffer parameters are not allowed.

For an example of a remotely-defined user-defined function, see the example of the externally-defined user-defined function in the previous section, and in the RUN statement, add the ON SERVER option. For an actual example, see Building Distributed Applications Using the Progress AppServer .


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