>I understood the count to an object instance would return its number of
>properties.  But once an ancestor is properly set to an instance it
>seems to return the number of the ancestor's properties.  Is it
>reasonable result?

Fumio,

There seems to be an error in the documentation here--the help file states 
"the number of properties in a parent script without counting the 
properties in an ancestor script."

I took your example through several different permutations, and count 
always returns the number of objects in the ancestor.

-- Parent2
property prop1, prop2, p3, p4, p5, p6, p7

on new me
   return me
end

-- Parent3
property ancestor
property p1

on new me
   ancestor = script("Parent 2").new()
   return me
end


p2=script("Parent 3").new()
put p2.count
-- 7

I tried it with the old syntax (p1 = new (script "Parent 3")); same results.

This is a new one on me, too--I haven't used count with objects before.

Cordially,
Kerry Thompson
Learning Network


[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