Reinierus Member Licensed User Longtime User Jun 2, 2015 #1 Hello. Maybe this is an old question, but I need to terminate a Sub, like Exit Sub in VB6. B4X: If vrCursor.NextRow=True Then vrCursor.Close vrSQL.Close Exit Sub End If ' If not, continue with the rest of the sub ' There is a way to do that? Thanks a lot
Hello. Maybe this is an old question, but I need to terminate a Sub, like Exit Sub in VB6. B4X: If vrCursor.NextRow=True Then vrCursor.Close vrSQL.Close Exit Sub End If ' If not, continue with the rest of the sub ' There is a way to do that? Thanks a lot
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2015 #2 Yes. B4X: Sub SomeSub If NeedToExitSub Then Return End Sub Upvote 0
Reinierus Member Licensed User Longtime User Jun 2, 2015 #3 Thanks Erel. I will try it Best Regards Upvote 0