When I run the following lines, I would like to use in another part of the program the result of Lastid
Sub LastID() As Int
Try
Dim LastID As Int = Main.SQL.ExecQuerySingleResult (requete)
Catch
Log (LastException)
End Try
Return LastID
End Sub
I've used the instruction return to do it, but in this code the instruction retrun rerun the sub.
Is it normal?
What should I do to return the result?
Regards
Luc
Sub LastID() As Int
Try
Dim LastID As Int = Main.SQL.ExecQuerySingleResult (requete)
Catch
Log (LastException)
End Try
Return LastID
End Sub
I've used the instruction return to do it, but in this code the instruction retrun rerun the sub.
Is it normal?
What should I do to return the result?
Regards
Luc