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 ð 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.
Event handlers on the set definition level are not included.
cannot be specified.
The set transaction description, if there is one, is not included.
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 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. |