Page 1 of 1

How I start and stop a sub?

Posted: 2005-10-04 06:51:30
by Palerique
I want to start determinated sub in a time and stop they in other time, in other sub.

like:

Sub 1()
if p=1 then
stop sub2
else
start sub2
End sub

sub 2()
End sub

How I make that?

Posted: 2005-10-04 10:05:56
by Leo
UO.Exec("exec name") - start script

UO.Exec("terminate name") - terminate script