Dim x=0,y,z=0
Function test1Do While z < 3
TracePrint "z="&z
TracePrint "x="&x
If x = 1 Then
test1 = 1
TracePrint "进来了"
End If
z = z + 1
x = x + 1
Loop
End Function
TracePrint test1()
遇到返回会继续执行,代码执行完毕回到调用处并返回返回值.
结果如下
Dim x=0,y,z=0
Function test1TracePrint test1()
遇到返回会继续执行,代码执行完毕回到调用处并返回返回值.
结果如下