Beja Expert Licensed User Longtime User Jan 7, 2014 #1 Searching the forum, I couldn't find the equivalent of: a = b c = d Goto xyz Any help appreciated.
stevel05 Expert Licensed User Longtime User Jan 7, 2014 #2 There is no goto in B4a. Are you trying to port code from somewhere else? Upvote 0
Beja Expert Licensed User Longtime User Jan 7, 2014 #3 No Steve, and yes there is no goto.. but looking for the equivalent.. there must be away to branch out from a line to a remote line in the same sub and without conditions. Upvote 0
No Steve, and yes there is no goto.. but looking for the equivalent.. there must be away to branch out from a line to a remote line in the same sub and without conditions.
stevel05 Expert Licensed User Longtime User Jan 7, 2014 #4 No only conditional code skipping with IF Then. Upvote 0
stevel05 Expert Licensed User Longtime User Jan 8, 2014 #6 Just a thought, Select / Case / End Select may suit you better, depending on what you are trying to achieve. It's still conditional through. Upvote 0
Just a thought, Select / Case / End Select may suit you better, depending on what you are trying to achieve. It's still conditional through.
JakeBullet70 Well-Known Member Licensed User Longtime User Jan 8, 2014 #7 Something like this... Its an old DBase trick. Code: Copy Do While True Dim a,b,d As Int If a=a Then End If If b=b Then Exit '--- exit the do loop from here End If If d=d Then End If Exit '--- we where always going to exit the loop Loop Upvote 0
Something like this... Its an old DBase trick. Code: Copy Do While True Dim a,b,d As Int If a=a Then End If If b=b Then Exit '--- exit the do loop from here End If If d=d Then End If Exit '--- we where always going to exit the loop Loop
mc73 Well-Known Member Licensed User Longtime User Jan 8, 2014 #8 Why not temporarily commenting the block of code in between? Upvote 0
Beja Expert Licensed User Longtime User Jan 8, 2014 #9 In assembler or machine code, we call this indirect addressing, where the address of the final destination is stored somewhere pointed to by a variable stored in yet AnotherSomewhere. A sensor or other interrupt routine changes AnotherSomewhere and everything then starts from there in domino effect. So there is no condition for the last jump. Upvote 0
In assembler or machine code, we call this indirect addressing, where the address of the final destination is stored somewhere pointed to by a variable stored in yet AnotherSomewhere. A sensor or other interrupt routine changes AnotherSomewhere and everything then starts from there in domino effect. So there is no condition for the last jump.