On 10/17/00 1:02 PM, Carl West ([EMAIL PROTECTED]) sent:

>I'm trying to show only Quicktime movies in the dialog:
>
>  foo = new(xtra "fileio")
>  setfilterMask (foo, "MooV")
>  proposedFilename = displayOpen(foo)
>  openfile(foo, proposedFilename, 0)
>  put "proposedFilename",proposedFilename, getfinderinfo(foo)

This works for me just fine, so I'm not sure how I can help. However...

>when I use:
>
>    setfilterMask (foo, "MooV TVOD")
> or setFilterMask (foo, "TEXT")
>
>it shows everything in the directory.

For me, the latter works.

The former will not work because the string must only contain file types. 
As an example, if you look in your Director 8:Learning:Lingo_Examples 
directory, you can see just the movie by using

setfilterMask (foo, "MooV")

or both the movie and the Director files by using

setfilterMask (foo, "MooVMVO8")

>when I use:
>
>    setfilterMask (foo, "MOOV")
>or  setFilterMask (foo, "ttxt")
>
>it shows only the subdirectories in the directory, no files at all.

Neither of these will work because, in the first case, the file type code 
is case-sensitive, so it must be MooV. In the second case, "ttxt" is a 
Simple Text creator code. The setFilterMask command needs the file type.

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to