DupForm

Use this procedure/function to duplicate a form. No data is duplicated, except global data that propagates in naturally.

Note For the system to be able to duplicate a form, you must first check the Multicopy option in that form’s Properties window.

Syntax

DupForm (Form, Group)

Parameter

Description

Form

Enter the name of the form you want to duplicate

Group

(Optional) Enter the name of the group if the form is not in the current group.

This procedure locates the named form and duplicates it if the form flags indicate that it can be duplicated. The system inserts the duplicated form immediately after the original. You cannot specify another insertion point.

If the procedure is successful in duplicating the form, it returns a non-zero value, otherwise zero (0) is returned. This procedure can fail for these reasons:

You can only use this procedure in scripts hosted by AFEMain or other Entry-related applications.

Syntax