Framework EDI Reference. Methods and Properties
ediSchema. Handle

Gets the handle of the implementation guideline.

Syntax:

Remarks

The handle of the implementation guideline is a number assigned to the object that differentiates the object from all instances of objects created during a process. The handle can be used to get this object later on using the GetSchemaByHandle method of the ediSchemas object.

Example

Dim oEdiDoc As ediDocument
Dim oSchemas As ediSchemas
Dim oSchema As ediSchema
Dim oSchema2 As ediSchema
Dim lSchemaHandle As Long
Dim sEdiFile As String
Dim sSefFile As String

sEdiFile = App.Path & "\850.X12"
sSefFile = App.Path & "\850.SEF"

Set oEdiDoc = New ediDocument
Set oSchema = oEdiDoc.LoadSchema(sSefFile, 0)
Set oSchemas = oEdiDoc.GetSchemas

oEdiDoc.LoadEdi sEdiFile
lHandle = oSchema.Handle
Set oSchema2 = oSchemas.GetSchemaByHandle(lHandle)
Debug.Print "Schema Handle: " & oSchema2.Handle
Debug.Print "Schema Version: " & oSchema2.Version
Debug.Print "Schema Industry: " & oSchema2.Industry
Debug.Print "Schema Version: " & oSchema2.StandardVersion