Using vb.net 2005
I am trying to write a recursive function that will query my database to get ID values, anyways that part of it is working well and is not an issue but the issue I'm having is that in the else part of my if stmt below I want to return from the function ("Return arrIDs") however I have a breakpoint in this function and it goes to the end of the function and then back to "Return myRecursiveFunction(tempID)"
When the tempID value is set to empty string then I want to return the array and exit the function. I am puzzled why I am not exiting the function, any ideas? here is the relevant code:
Public Function myRecursiveFunction (ByVal id as String) As String()
Dim arrListIDs As New ArrayLIst
Dim arrIDs() As String
Dim tempID As STring = String.Empty
'code here to query the db and assign value to the tempID
Dim myConStr As Stri ...
Go to the complete details ...