Framework EDI Reference. Methods and Properties
ediTransports. Clear

Removes all the transport objects in the collection.

Syntax:

Returns

Returns 1 if the operation is successful; otherwise 0 is returned.

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oTransports As Fredi.ediTransports
Dim oTransport As Fredi.ediTransport

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get transports object
Set oTransports = oEdiDoc.GetTransports

' 1. Create a transport object
Set oTransport = oTransports.CreateTransport
' TODO: Set required parameters for the upload.

' 2. Create a transport object.
Set oTransport = oTransports.CreateTransport
' TODO: Set required parameters for the upload.

MsgBox "Number of transport obejcts = " & CStr(oTransports.Count)

oTransports.Clear

MsgBox "Number of transport obejcts (after Clear) = " & CStr(oTransports.Count)

Samples