You can jump from one code to another?

lock255

Well-Known Member
Licensed User
Longtime User
Hello, I need your help ... forum I could not find the tutorial to jump from one code to another line of code .. in short, a command like GO TO there in B4A?

Another question how do you switch to another sub when a button is pressed?
 

stevel05

Expert
Licensed User
Longtime User
There is no GOTO in Basic4Android, is uses calls to subroutines. Also like a lot of modern languages it is event driven. It relies on user interaction.

Take a look at the Beginners Guide specifically Chapters 1&2
 
Last edited:
Upvote 0

lock255

Well-Known Member
Licensed User
Longtime User
There is no GOTO in Basic4Android, is uses calls to subroutines. Also like a lot of modern languages it is event driven. It relies on user interaction.

Take a look at the Beginners Guide specifically Chapters 1&2


Thank you for your reply, I found the solution in Chapter 4.

Although I had to create the sub hand, since I selected the word and then I made Sub Go To Declaration (hearing a beep) but you have not created any sub, you know tell me why?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Goto Sub Declaration is a shortcut on the context Menu, right mouse click or press F12, that will take the cursor to a subroutine whose name is highlighted that already exists in your code.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Yes, that's right.

-------------------
Sent via Tapatalk
 
Upvote 0
Top