Application object (Manager)
This method imports a set definition that was:
Previously exported to a file using ExportSetDefinitionFromFile.
Created in another application. See Set definition file format.
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 ð (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.
Event handlers on the set definition level are not included.
cannot be specified.
No set transaction description can be included. If a set transaction description is needed, it must be created separately in FORMS.
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. |