> you're looping through the names, and when you detect one of your files
> you exit the loop and display the name.
Or not building a RETURN delimited string while repeating through the
fileNames and being left with just the last one found.
The no-xtras solution (won't work in Shockwave, but then nor will fileXtra):
on populateFieldWithFileNames
tString = ""
repeat with n = 1 to ( the maxinteger )
tFileName = getNthFileInFolder( folderPathToSearch, n )
if tFileName = "" then
delete the last char of tString
exit repeat
end if
tString = tString & tFileName & RETURN
end repeat
member("fileNames filed").text = tString
end
HTH,
-Sean.
[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!]