ImportSetDefinitionFromFile(SetDefFileName As String) As Integer

Application object (Manager)

This method imports a set definition that was:

The set definition located in the specified file is made current but is not saved to FORMS’ set definition database. To save the set definition in the database, you must call the SaveAs method.

The usual way of importing set definitions is to import them from binary files using Administration ð Import definitions (FORMS Help topic) in FORMS. The ImportDefinitions method duplicates this process.

ImportSetDefinitionFromFile as well as ExportSetDefinitionToFile 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 return value indicates the outcome of the operation. The following return codes are possible:

Return value

Description

0

OK.

-1

Internal error.

-2

File not found.

-3

Syntax error in file.

-5

A form definition included in the set definition was not found or had the wrong status.

-6

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

-9

Error opening file.

-11

Function not implemented in this level.

-16

Failed to create a set definition.

Set definition file format

Methods for the Application object for use with the Manager