> This was posted a while back by someone.
> I would like to get file names of all movies in the current
> folder to be
> used in the GPDL box. I think it used the FileXtra, but I
> didn't find any
> handler that could get the list of filenames. Can that person please
> re-post it?

That would be me :)

The method is:
DirectoryToList string dirName

fileList = directoryToList (the moviePath & "English")

put fileList
-- ["1_1Go.wav", "1_0Tip1.wav", "1_3Sta2.wav", "1_1Flag.wav", "1_0Tip2.wav",
"1_3Sta1.wav", "1_2Lang.wav", "1_3Sta3.wav", "1_3Sta4.wav", "1_3Sta5.wav",
"1_4Ret.wav", "1aMap1.wav", "1bHayes3.wav"]

The fileXtra 3 equivalent would be:
fx_FolderToList object me, string folderName
- But here you first have to instantiate the xtra.

For those of you who didn't follow the original thread, I used this list as
a #range property for the GPDL:

on getPropertyDescriptionList
  gpdl = [:]
  fileList = directoryToList (the moviePath & "English")
  gpdl[#pSound] = [#comment: "Choose a sound file to play", #format:
#string, #default = "", #range: fileList)
return gpdl
end

Regards,
Karina Steffens,
Lead Programmer

Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin

Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie




[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