Scott Raney wrote:
> On Fri, 25 Aug 2000 [EMAIL PROTECTED] wrote:
>
>> seems like an easy thing, but not happening for me
>>
>> put the files of directory "data" into fld "whatever"
>>
>> Just want the filenames of all the files in the folder "data" to go inside
>> field. I get a "missing" error
>
> The files is a global property, not a function, so you can't pass a
> parameter with it. It works on the current directory, so you need to
> do something like:
> set the directory to "data"
> put the files into field "whatever"
But if a function would be convenient, you might consider this:
function GetFiles pDir -- pDir is a valid path
put the directory into tSaveDir -- Save the original directory setting
set the directory to pDir -- set to the specified directory
get the files -- get the list of files
set the directory to tSaveDir -- reset the directory to its original
return it -- return the list of files
end GetFiles
--
Richard Gaskin
Fourth World Media Corporation
Multimedia Design and Development for Mac, Windows, UNIX, and the Web
_____________________________________________________________________
[EMAIL PROTECTED] http://www.FourthWorld.com
Tel: 323-225-3717 ICQ#60248349 Fax: 323-225-0716
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.