# ON ERROR 的问题, 多谢

Posted by Q.K. on July 20, 1999 at 00:41:51:

模组M1
public sub main()
form1.print "this is m1 start"
on error goto m1_err
form1.print "now call m2_start"
call m2_start
end
m1_err:
i%=i%+1:if i%=5 then stop
form1.print err
form1.print "now resume"
resume
end sub
模组m2
public sub m2_start
form1.print "this is m2 start"
call m2_geterr
end sub
public sub m2_geterr
form1.print "this is m2_geterr
open "somethigs" for input as #1
close
end sub
请指点:为何在resume 后只会返回 m2_start 那行执行下去, 而不是返回 open "somethings" 那行呢, 有人试过话不会, 另我搅得更加 Q.K.

Follow Ups:

- 本来就这样 小吴 13:17:36 7/20/99 (0)