You are here: Function Reference > Alphabetical Listing > W > WIPExit

WIPExit

Use this procedure/function to close work-in-process.

Syntax

WIPExit (SaveFlag)

Parameter

Description

SaveFlag

Enter a positive number, such as one (1), to save and close the current form set. Enter zero (0) to close the form set without saving and exit WIP.

The default is to save and close the current form set.

This procedure generates a message that tells the system to close the current form set.

Although control returns to the script after calling this procedure, the only statement that should be executed afterwards is a RETURN statement.

Example

Here are some examples:

Procedure

Result

Explanation

WIPExit(1)

Exits WIP and saves your work.

Work is saved with a valid positive flag.

WIPExit(0)

Exits WIP but does not save your work.

Work is not saved with a flag of zero.

See also