At 11:27 PM -0400 10/1/03, you wrote:
Is there a quick and efficient way to get the names of all members in a cast as a list? It seems there must be something better than looping through the cast, no?

Slava

here's a routine that will get that info for you (I added a check for #empty)

note: the original routine only checked the first 1000 members & only operated on castlib #1.

on getNames castLibRef
  membernameList = []
  numMembers = the number of members of castLibRef
  repeat with i = 1 to numMembers
    thisOne = member(i, castLibRef)
    if thisOne.type <> #empty then
       membernameList.append(thisOne.name)
    end if
  end repeat
  return membernameList
end

hth

-Buzz


[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!]

Reply via email to