Newbie: call subpraogram
David Vaughan
dvk at dvkconsult.com.au
Fri Sep 6 05:48:01 EDT 2002
On Friday, Sep 6, 2002, at 19:00 Australia/Sydney, Esa Kivelä wrote:
> Greetings to all
>
> I like to call subroutine in my progam but when I try Hyperradnd old
> style
>
> On Mainprogram
> <code>
> valo (jumpu to sub)
> end Mainprogram
>
> On valo
> blaa blaaa
> end valo
>
> it won't work. Runtime tell "cant find the handler"
>
> How I can call subroutines in Runtime?
Esa
You are doing it correctly and it [almost always] works, unless the
handler does not compile. I have found sometimes that Revolution
silently fails to compile a handler and then produces the message you
have seen when you try to run it, because there is no valid handler of
that name.
Open the script again, add and remove a space somewhere (or some other
irrelevant edit) and recompile. This may catch it. Otherwise, quit and
restart Revolution and then try a recompile. I am sure you will find a
minor code bug.
regards
David
>
> EsaK
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list