Framework EDI Reference. Methods and Properties
ediDocument. CursorType

Sets or gets the cursor type.

Syntax:

Parameters:

Note:

Setting the cursor type to ForwardOnly (when reading) or ForwardWrite (when writing) can significantly improve performance when processing huge EDI files because segments of the EDI files are not kept in memory, so there is no overhead in managing a hierarchy tree of segments. However, because there will be no hierarchy tree, the functions that depend on it will not be available for use when the cursor type is set to Forward.

Example

:
Set oEdiDoc = New Fredi.ediDocument
oEdiDoc.CursorType = Cursor_ForwardOnly
oEdiDoc.LoadSchema sPath & sSefFile, 0
oEdiDoc.LoadEdi sPath & sEdiFile