Can I call a function that is in a different script?
Jan Schenkel
janschenkel at yahoo.com
Mon Mar 10 03:54:01 EST 2003
--- erik hansen <erikhans08 at yahoo.com> wrote:
>
> --- Victor Eijkhout <eijkhout at cs.utk.edu> wrote:
> > At 12:01 -0500 2003/03/09, Richard Gaskin
> > wrote:
> > > > Suppose I have a function defined in some
> > field's script. Can I call
> > >> it from a handler in another field's
> > script?
> > >
> > >See the call commond.
> >
> > That seems to be for handlers; I needed a
> > function because I need the
> > return result.
> >
> > In fact, "call" is almost like "send", and in
> > my case "call" would be
> > precisely wrong, because I want a function
> > result based on local data
> > of the other handler, not of the calling
> > handler, the way "call"
> > would imply.
>
> i remember a workaround from somewhere
> that "sent" a handler with parameters to a
> script which had a function <inside> the handler.
>
> how the data was returned, i disremember.
> maybe a global or the result.
>
> =====
> erik at erikhansen.org http://www.erikhansen.org
>
Why not just use the 'value' function ? It has a
second parameter that lets you determine in the
context of which object it should be executed. Example
:
get value("Foo()", fld "Bar")
Hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
More information about the use-livecode
mailing list