[CODE=vb]Function recursiveTest(n )
x = n + 1
Debug.Print n
If x > 10 Then
recursiveTest = "finish recursive test"
Else
recursiveTest x
End If
End Function[/CODE]
If I debug, I don't see the "finish recursive test".
? recursiveTest(7 ,false)
7
8
9
10
<blank>
I should see "finish recursive test" instead of the whilte blank line there.
x = n + 1
Debug.Print n
If x > 10 Then
recursiveTest = "finish recursive test"
Else
recursiveTest x
End If
End Function[/CODE]
If I debug, I don't see the "finish recursive test".
? recursiveTest(7 ,false)
7
8
9
10
<blank>
I should see "finish recursive test" instead of the whilte blank line there.
Comment