An easy way is to take use a string version of the object reference, 
take word 2 of it, then strip the first and last characters.  I've 
got one right here:

showglobals

-- Global Variables --
version = "8.5"
goGame = <offspring "Game" 1 b9fed20>
goSongPlayer = <offspring "SongPlayer" 1 ba0ac54>

theRef = string(goGame)
theName = word 2 of theRef
put theName
-- ""Game""
delete char 1 of theName
delete the last char of theName
put theName
-- "Game"


Irv


At 5:15 PM -0400 5/2/01, Ian Jempson wrote:
>When I use the ilk() function it seems that instances of a parent script
>are shown as #instance. Since I have a list where any given element may be
>one of three different classes, is there any way that lingo can easily
>return the name of the parent script that any arbitrary object is an
>instance of?
>
>I suppose I could write a method in each class to return the name of the
>parent script. just thought I would check if there is any easier way...
>


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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