Something like this:

on new me
   sMe = string(me)   -- gives you something like "<offspring 
"myScript" 2 1235678>"
   pMyName = word 2 of sMe  -- gives you ""myScript""
   delete char 1 of pMyName  -- gives you "myScript""
   delete the last char of pMyName  -- gives you "myScript"
   return me
end

Irv


At 1:37 AM +0100 3/6/02, Michael von Aichberger wrote:
>Hi,
>
>simple question:
>
>Suppose you have a parent script named "myScript".
>
>How can I access that name from within the parent script, something like:
>
>
>property pMyName
>
>on new me
>   me.pMyName = me.member.name
>   return me
>end
>
>???
>
>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!]


-- 

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/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