On 2006-09-12, at 5:16 PM, Bill Johnson wrote:
This code will allow me to select any file. That's not what I want
or meant. I only want to allow .mp3 files to be selected.
Dim myType As FileType
myType = New FileType
myType.Name= "audio"
myType.Extensions = ".mp3"
Dim dlg As New OpenDialog
dlg.Filter = myType
Dim f As FolderItem
f = dlg.ShowModalWithin(self)
Bill Johnson
:::::::: [EMAIL PROTECTED] :::::::
You have NOT a File Type:
Dim pngType As New FileType
pngType.Name = "image/png"
pngType.MacType = "PNG "
pngType.Extensions = "png"
And it looks that RB do not care about the file extension ...
Sven E
-----------------------
REALbasic2006R3 OS X 10.4.7 Intel and 10.46 PPC
_______________________________________________
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>