Here's a function that I've had in my "toolbox" for many year (note the "set" statements from a long time ago). Just pass in your object reference:

on DebugObject oWho
  set nParams = count(oWho)
  repeat with paramNum = 1 to nParams
    set symParam = getPropAt(oWho, paramNum)
    set theValue = getAProp(oWho, symParam)
    set strParam = value(symParam)
    put strParam & ":  " & theValue
  end repeat
end DebugObject

Irv


At 2:23 PM +0200 8/29/03, Michael von Aichberger wrote:
Hi everybody!

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?


Thanks Michael

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


--

Multimedia Wrangler.
[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