Hi all,
I call a recursive function that returns true or false.
Even when enable =0 and Find_Way returns true (I checked on debugger)
I get a messagebox with FALSE.
Actually I can make a loop but why there is an error?
If Find_Way Then
Msgbox("","TRUE" )
Else
Msgbox("","FALSE" )
End If
Sub Find_Way As Boolean
If enable=0 Then
Return True
Else If Availables Then
Next_Move
Find_Way
Else If No_Way Then
Make_Zero
Return False
Else
Find_Way
End If
End Sub
I call a recursive function that returns true or false.
Even when enable =0 and Find_Way returns true (I checked on debugger)
I get a messagebox with FALSE.
Actually I can make a loop but why there is an error?
If Find_Way Then
Msgbox("","TRUE" )
Else
Msgbox("","FALSE" )
End If
Sub Find_Way As Boolean
If enable=0 Then
Return True
Else If Availables Then
Next_Move
Find_Way
Else If No_Way Then
Make_Zero
Return False
Else
Find_Way
End If
End Sub
Last edited: