Question about Sub

cnicolapc

Active Member
Licensed User
Longtime User
Hello everyone,
I am a new user Basic4Android and I need help with these issues.
Is there a command similar to exit sub?
Is there a way to go to a specific line of code (like goto)?
Thanks
This software is great.
hello
Nicola
 

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
Hello everyone,
Is there a way to go to a specific line of code (like goto)?
Nicola

While there is not a B4A equivalent for GoTo, there is a kludge using Try-Catch-End Try which lets you jump forward to a specific line, but not backward. See this thread for details.

That thread also contains a file listing equivalent B4A code for other Visual Basic commands.
 
Upvote 0
Top