Framework EDI Reference. Methods and Properties
ediDocument. LoadSchema

Specifies a schema to load as part of the guideline that will be used by the document.

Syntax:

Parameters:

Returns

If successful the object of type FREDI.ediSchema is returned; otherwise an empty object is returned if the operation fails.

Remarks

Schemas are used to provide a guideline as to how an EDI document should be translated. More than one schema can be specified for a single document. If no schemas are specified, then FREDI will automatically use its internal standard reference library to find the best guideline to translate the EDI document.

Note: Unlike the ImportSchema method, the LoadSchema method does not immediately load the schema at the time that it is invoked, but rather it is imported at the time when the EDI document is being processed.

Example

Set oEdiDoc = New Fredi.ediDocument
Set oSchemas = oEdiDoc.GetSchemas
oSchemas.EnableStandardReference = False

oEdiDoc.LoadSchema "850_4010.SEF", Schema_Standard_Exchange_Format
oEdiDoc.LoadSchema "997_4010.SEF", Schema_Standard_Exchange_Format

oEdiDoc.LoadEdi sPath & sEdiFile