View Single Post
  #4  
Old 10-02-2004, 11:02
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

Your problem is that you are comparing the filter string to the ".ai". If I'm not mistaken, the filter string doesn't change and is always what you have specified.

I guess you'd better check the extension of the actual file selected. Like:

Code:
If LCase$(Right$(BrowseOpenFile, 3)) = ".ai" Then
Note also that I used LCase function to ensure that the file name is in lowercase when comparing (otherwise MyFILE.AI will be not detected).

The rest seems OK.
Reply With Quote