No, you don't want to change your original data, you just want to build a string with returns in it.

Here's my untested version:

on ListToString listIn
  stringOut = ""
  nItems = count(listIn)
  repeat with i = 1 to nItems
     put (listIn[i] & RETURN) after stringOut
  end repeat
  return stringOut
end

Call this routine, pass in your list, it will return a string, put the string into some field or text member to display it.

Irv

At 10:51 AM -0500 6/27/03, [EMAIL PROTECTED] wrote:
Thank you guys,
I'll try these and see what happens. Perhaps if I duplicate the list before
dumping it into the field I could then avoid hard returns in the actual
list, right?
Chris

 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 27 Jun 2003 11:35:55 -0400
 To: [EMAIL PROTECTED]
 Subject: Re: <lingo-l> displaying text from list


-- not tested :) repeat with i=1 to myList.count tItem = myList[i] tItem = tItem & RETURN myList[i] = tItem end repeat

 -- potential problem is you now have hard returns in your data
 -- hope this helps
 --mv





[EMAIL PROTECTED]@mail4.fcgnetworks.net on 06/27/2003 11:01:17 AM

Please respond to [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]


To: [EMAIL PROTECTED] cc:

Subject: <lingo-l> displaying text from list


Hi, Is there any way to insert a RETURN or SPACE after each item in a linear list? I am working on a questionaire with checkboxes that stores the text in a global list and after the user is finished with the questionaire I want them to be able to read the answers. So I've dumped the list into a field but there are no spaces between each item and the text is hard to read. Any suggestions would be greatly appreciated! Chris Satory


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]




[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]


--

Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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