On 12-Sep-06, at 9:59 AM, [EMAIL PROTECTED] wrote:
On Sep 12, 2006, at 16:16 UTC, Sven E Olsson wrote:
You have NOT a File Type:
Right, you must always specify the MacType for correct behavior.
And it looks that RB do not care about the file extension ...
It cares about it for untyped files, but not for properly typed ones.
Thank you fellows.
Here's the new code that works
Dim myType As FileType
myType = New FileType
myType.Name= "audio"
myType.Extensions = ".mp3"
myType.MacType = "MPG3"
Dim dlg As New OpenDialog
dlg.Filter = myType
Dim f As FolderItem
f = dlg.ShowModalWithin(self)
Actually, in the next few lines after that code I had some temporary
code that was checking for *what* the mactype for a mp3 is. I hadn't
found one that had a mactype so assumed I didn't need one. :D That's
what I get for getting files off the net. ;-)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>