|
-
Oct 22nd, 2000, 10:52 AM
#1
Thread Starter
Frenzied Member
I currently use this code to see if a file exists:
Public Function FileExist(sData As String) As Boolean
On Error Resume Next
If sData <> "" Then
File = Len(Dir$(sData))
If Err Or File = 0 Then
FileExist = False
Else
FileExist = True
End If
End If
End Function
but if i want to use it to see if a directory exists it never works, is there a proper way to do this ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|