Good 'ol Goto?

MM2forever

Active Member
Licensed User
Longtime User
Im sitting around trying to code my submit to the Sudoku Challenge and i could use the keyword GoTo now (i know that real good programmers dont use that, but i need it because im in a hurry... is that the reason why it doesnt seem supportet anymore?) :sign0161:
 

aloraptor

Member
Licensed User
Longtime User
i'm sure it was never there cause it is extremely bad programming form. leads to to many infinite loops.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Hi MM2forever,

Goto has never been in B4A !

To replace them you can try with:
- If / Then / Else
- Do Until / Loop
- Do While / Loop

But I know that there are combinations very difficult to change.

How many Gotos do you have in your code ?

Best regards.
 
Upvote 0

MM2forever

Active Member
Licensed User
Longtime User
Hi Klaus
I just wanted to finish my code using ONE Goto when i found out it doesnt exist.

Now i got to change the whole code, but thinking about it i saw that the goto would not even have been working...

Thanks for the answers
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…