C cnicolapc Active Member Licensed User Longtime User Jan 30, 2011 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jan 30, 2011 #2 Is there a command similar to exit sub? Click to expand... You can use Return (with or without a return value) to exit a sub, Is there a way to go to a specific line of code (like goto)? Click to expand... No. Upvote 0
Is there a command similar to exit sub? Click to expand... You can use Return (with or without a return value) to exit a sub, Is there a way to go to a specific line of code (like goto)? Click to expand... No.
C cnicolapc Active Member Licensed User Longtime User Jan 30, 2011 #3 thanks a lot for fast response Nicola Upvote 0
nfordbscndrd Well-Known Member Licensed User Longtime User Jan 30, 2011 #4 cnicolapc said: Hello everyone, Is there a way to go to a specific line of code (like goto)? Nicola Click to expand... 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
cnicolapc said: Hello everyone, Is there a way to go to a specific line of code (like goto)? Nicola Click to expand... 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.
C cnicolapc Active Member Licensed User Longtime User Jan 30, 2011 #5 Thank you very much for your help. Nicola Upvote 0