exportprocedure(
DATABASE
,
PROCEDURE
)

The exportprocedure( function exports a procedure and the procedure’s meta data as a binary object that can be imported with the importprocedure statement.


Parameters

This function has two parameters:

database – the database containing the procedure to export. Note: This parameter is optional, if omitted, the current database is assumed.

procedure – The name of the procedure to be exported.


Description

This function exports the contents of a procedure (both the source code and meta-data) as a binary object that can be imported with the importprocedure statement. This example copies the Balance procedure from the Inventory database into the current database.

importprocedure exportprocedure("Inventory","Balance")

You can also save the procedure into a file:

filesave "Balance.procedure",exportprocedure("Balance")

The saved procedure can later be brought back into a database using the fileload( function and the importprocedure function.


History

VersionStatusNotes
10.0NewNew in this version.