Alan...
Your code keeps setting the text member to the item from the database on 
each iteration of your repeat loop. It actually is putting all of the text 
in your text member but it gets replaced with the next item each time 
throught the repeat loop. Try something like this instead.

on list_teamnames
   repeat with i=1 to count(mainlist.sub1.teams)
     -- The next line was changed
     member("display").line[i] = 
getaprop(mainlist.sub1.teams,mainlist.sub1.teams.getpropAt(i))
   end repeat

end

Hope that helps.
...Neil

>The problem is that it works fine when tested in
>the message window but only displays the last item in the field on screen.
>
>The code I am using is:
>on list_teamnames
>   repeat with i=1 to count(mainlist.sub1.teams)
>     member("display").text =
>getaprop(mainlist.sub1.teams,mainlist.sub1.teams.getpropAt(i))
>   end repeat
>
>end


[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