ExportSetDefinitionToFile(SetDefName As String, SetDefFileName As String, OverWrite As Integer) As Integer

Application object (Manager)

This method exports the set definition named in SetDefName and exports it to a file specified in SetDefFileName.

The usual way of saving set definitions is to export them to binary files using Administration ð Export definitions in FORMS. (For more information, see Exporting definitions, a FORMS Help topic.) The ExportDefinitions method duplicates this process.

ExportSetDefinitionToFile, as well as ImportSetDefinitionFromFile and SaveAs, are for users who need to create set definitions using the COM-based API rather than using the GUI. Set definitions can now be created by another application and imported to FORMS.

Limitations

The OverWrite parameter controls whether the file should be overwritten if it already exists. If the OverWrite value is zero and the file already exists, the function fails and returns a value of -6 (ESI_FILE_EXIST). Any other OverWrite value specifies that an existing file is to be overwritten.

Return values

Return value

Description

0

OK.

-1

Internal error.

-6

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

-7

The file already exists and overwrite is not specified.

-8

No set definition exists.

-9

Error opening file.

-10

Error writing to file.

-11

Function not implemented in this level.

-12

Database read error.

-15

Set definition is locked.

Set definition file format

Methods for the Application object for use with the Manager