Framework EDI Reference. Methods and Properties
ediFiles. IsExist

Indicates if the file name exists in the collection.

Syntax:

Parameter:

 

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem
Dim oFiles As Fredi.ediFiles

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

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

' Get the files in the folder.
Set oFiles = oFileSystem.GetDirectory(App.Path & "\SomeFolder\")

If oFiles.IsExist("File1.Txt") Then

MsgBox "File exists"
Else
MsgBox "File does not exist"
End If

Samples