Get a handler from a script

Richard Gaskin ambassador at fourthworld.com
Sun Mar 19 11:12:37 EST 2006


David Burgun wrote:

> The problem is that if you are doing something like this:
>
> if the script of myObject contains "on HandlerName" then
>   send HandlerName to myObject
> end if

Since "on" or "function" must be the first word in a line to be an 
active command or function, you could simply add return to your 
evaluation to weed out comments:

   if cr&"on handlerName" is in cr&the script of myObject then


--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the Use-livecode mailing list