> how can i show just the filename and not the whole path in a text
> box....
>
> i think its got something to do with repeat loops
>
> butim an amateur

If you have "FileXtra" installed, all you need is this command:

put DirectoryToList(the moviePath)
-- ["casts\", "2Land.dir", "2People.dir", "2Sport.dir", "2Town.dir",
"English\", "2Main.dir"]


If you have to use fileIo, then what you need to do is something like this

(Warning: e-mail lingo follows. Totally untested, approach with care)

newDirectoryList = []
the itemdelimiter = ":"
repeat with myFileName in DirectoryList
   i = myFileName.items.count
   myFileName = myFileName.item[i]
   newDirectoryList.add(myFileName)
end repeat


Karina




[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