Hi Michael


I have a script object, like
gObj = new(script "oTest").

The function gObj.handlers() gives me all the methods of that script.
Is there a comparable function that gives me all the properties and their
values?

you can use 'getPropAt' also with instances. Here is a little handler (warning : email-Lingo) that get all the properties of the instance



on GetObjectProps (oInst)


lyProps = []
n = 0
repeat while TRUE
  n = n + 1
  yProp = oInst.getPropAt(n)
  if voidP(yProp) then exit repeat
  lyProps.add(yProp)
end repeat
return lyProps
end
 cheers
s�b

[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