Framework EDI Reference. Methods and Properties
ediFileSystem. GetFile

Gets an object to an existing file.

Syntax:

Parameters:

Returns

Returns an object of type FREDI.ediFile if the file exists; otherwise returns NULL or empty object.

 

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem
Dim oFile As Fredi.ediFile

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

' Get file system object.
Set oFileSystem = oEdiDoc.GetFileSystem

' Get the file object.
Set oFile = oFileSystem.GetFile(App.Path & "\TestFile.TXT")

If Not oFile Is Nothing Then

MsgBox "File " & oFile.FileName & " exists"
Else
MsgBox "File does not exist"
End If

Samples