At 1:47 PM +0100 4/17/2001, Jon Paul Alongi wrote:
>guys can u help please.....this is probably easy but im astudent...still
>learning.....
>
>what i want to do is return a list of files in a folder  (WHICH I CAN
>DO, using filextra)
>and then take that list and make each file sit on one line...
>

You can use the little function below. You call it like this:

        myString = listToString(myList)

where myList is a linear list ( [1, 2,3, 4, etc.]


on listToString(aList)
   --returns: string
   --param: linear list
   cnt = aList.count
   tempString = ""
   repeat with i = 1 to cnt
     put aList[i] & RETURN after tempString
   end repeat
   delete line tempString.line.count of tempString
   return tempString
end
-- 

     Roy Pardi
--------------------------------------------------------------------
Multimedia Developer   +  Lingo Programming Consultant
                                 [EMAIL PROTECTED]
--------------------------------------------------------------------



[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