Framework EDI Reference. Methods and Properties
ediSchema. Import

Imports the schema information from an external schema file or version of standard reference library.

Syntax:

Returns:

Returns 1 if successful; 0 if unsuccessful.

Remarks:

The Import method imports the schema information immediately.  Unlike the LoadSchema method of the IediDocument interface, which imports the schema information only when processing the document begins,the Import method imports the schema information immediately when the method is invoked.  The Import method also imports the entire schema, not just the information required for processing the document.

Example:

Dim oEdiDoc As Fredi.ediDocument
Dim oSef As Fredi.ediSchema
Dim sSefFile As String
Dim sEdiFile As String   
sSefFile = App.Path & "\850.sef"
sEdiFile = App.Path & "\850.x12"   
Set oEdiDoc = New Fredi.ediDocument
Set oSef = oEdiDoc.LoadSchema(sSefFile, 0)   
' Import immediately
oSef.Import   
oEdiDoc.Load sEdiFile