SaveAs(SetName As String, OverWrite As Integer) As Integer

SetDef object

This method saves a set definition to FORMS’s set definition database. It is typically used after importing a set definition from a file using ImportSetDefinitionFromFile.

The OverWrite parameter controls if the set should overwrite any existing set with the same name. A value of zero in OverWrite means that if a set with the same name already exist the function will fail and return a value

The OverWrite parameter controls whether any existing set definition with the same name should be overwritten. If the OverWrite value is zero and a set definition with the same name already exists, the function fails and returns a value of -4. Any other OverWrite value specifies that an existing set definition is to be overwritten.

The return value indicates the outcome of the operation. The following return codes are possible:

Return value

Description

0

OK.

-1

Internal error.

-4

The set definition already exists in FORMS’s database and overwrite is not specified.

-6

A form definition included in the set definition had incompatible settings.

-11

Function not implemented in this level.

-12

Database read error.

-13

Database writing error.

-14

Database delete error.

-15

Object is locked.

The SetDef object