> Can anyone suggest a better way as I am sure there must be one]

The following slight revision in syntax is simpler to read, write, and
understand, but most importantly, avoids counting the list unnecessarily
each loop iteration.  Admittedly, it doesn't take much time to count, but
why do it if you don't need to?


temp_name_text = ""
repeat with aRecord in gList_Of_Contact_Data
  temp_name_text = temp_name_text & aRecord.name & RETURN
end repeat
member("myField").text = temp_name_text


Food for thought,
Rob

/*********************************
* Rob Wingate, Software Human    *
* http://www.vingage.com         *
* mailto:[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