You are here: Function Reference > Alphabetical Listing > D > DelForm

DelForm

Use this procedure/function to remove a form from the document.

Syntax

DelForm (Form, Group)

Parameter

Description

Form

Enter the name of the form you want to remove.

Group

Enter the name of the group which contains the form you want to remove. The default is the current group.

The system optionally returns one (1) on success or zero (0) on failure.

Remove the specified form from the document set. It is not permitted to remove the form executing the script—the current form.

Note Removing a form means that all data associated with the form will be lost.

Example

Here are some examples:

Procedure

Result

Explanation

DelForm( "FORM")

1 or 0

Assuming FORM is located in the current group and is not the current form, it will be deleted.

DelForm ( "FORM\3", "GRP")

1 or 0

Locate the third occurrence of FORM within the GRP and delete that form.

See also