|
-
Nov 3rd, 2024, 05:52 PM
#8
Fanatic Member
Re: Classic VB - How can I check if a file exists?
The problem with this is that it returns True for "VB6.exe".
Why? Because the app "VB6.exe" may be in your directory, but in fact you just messed up something.
Now pass this assumingly existing "path" on to an ActiveX exe, assuming the file really exists and BAMM.
Your ActiveX might be in a different path than your exe, and finally you notice that the function betrayed you.
Praising a function's speed without applying error checks to compensate for such problems is not fair.
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
|