SYNTAX:
xpxDefineSchema (fileName , diagnosticFile , schemaToStore : STRING; options , VAR noOfWarnings , VAR noOfErrors : INTEGER) status : INTEGER;
The xpxDefineSchema function runs one or more Express schemata through the EDMexpressCompiler. Optionally it creates and populates a dictionary model in the EDMdatabase of one or more of the compiled schemata. The Express schemata to be compiled is residing in the file(s) specified by the fileName argument. The fileName argument can specify more than one file by using wild cards or by specifying several file names separated by the comma character. Any number of schemata can reside in one file. Short form schemata as well as long form schemata can be compiled. Short form schemata is schemata that contains interface (USE FROM , REFERENCE FROM) constructs.
The argument diagnosticFile specifies the name of a file that will receive the error and warning messages from the EDMexpressCompiler. If the diagnosticFile is an empty string or has the value indeterminate , then the output from the EDMexpressCompiler will be to the EDMmodelConverter standard output window.
The argument schemaToStore specifies for which schemata a dictionary model should be created and populated, in case this option is enabled. If a dictionary model should be created for more than one schema, the schema names should be specified, one by one separated by commas. If the schemaToStore argument is an empty string or has the value indeterminate , a dictionary model will be created for all schemata compiled if the appropriate options are enabled.
The argument options specifies the EDMexpressCompiler options that should be used during the compilation. The options argument should be specified as a zero or as a sum of one or more integer constants.
Theses constants are equivalent to the options used in the EDMinterface function edmiDefineSchema.
The arguments noOfWarnings and noOfErrors will receive the number of warnings and number of errors respectively, detected during the compilation process.
This function is equivalent to the EDMinterface function edmiDefineSchema
General
Content
Integrations