M MM2forever Active Member Licensed User Longtime User Sep 30, 2011 #1 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:
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:
Kevin Well-Known Member Licensed User Longtime User Sep 30, 2011 #2 I don't know how easy it will be to apply to your code, but you can try looking at the following post: http://www.b4x.com/forum/basic4android-updates-questions/7475-vb6-basic4android-3.html#post42817 It is a bit of a work-around using Try/Catch. The only thing is, it will not let you go back in code. Only forward. I'm not sure why it was removed. Possibly that command (or equivalent) is not available in java? Upvote 0
I don't know how easy it will be to apply to your code, but you can try looking at the following post: http://www.b4x.com/forum/basic4android-updates-questions/7475-vb6-basic4android-3.html#post42817 It is a bit of a work-around using Try/Catch. The only thing is, it will not let you go back in code. Only forward. I'm not sure why it was removed. Possibly that command (or equivalent) is not available in java?
M MM2forever Active Member Licensed User Longtime User Sep 30, 2011 #3 Thanks Kevin, but Try/Catch would require to change the entire code, but its a good shot at the solution anyways (changing entire code ^^ ) Upvote 0
Thanks Kevin, but Try/Catch would require to change the entire code, but its a good shot at the solution anyways (changing entire code ^^ )
K kickaha Well-Known Member Licensed User Longtime User Sep 30, 2011 #4 It was never there (in B4A) to be removed. Upvote 0
Kevin Well-Known Member Licensed User Longtime User Sep 30, 2011 #5 kickaha said: It was never there (in B4A) to be removed. Click to expand... Sorry, that came out wrong. I didn't mean to imply that it was once there then removed. I was comparing B4A to VB. Upvote 0
kickaha said: It was never there (in B4A) to be removed. Click to expand... Sorry, that came out wrong. I didn't mean to imply that it was once there then removed. I was comparing B4A to VB.
A aloraptor Member Licensed User Longtime User Sep 30, 2011 #6 i'm sure it was never there cause it is extremely bad programming form. leads to to many infinite loops. Upvote 0
i'm sure it was never there cause it is extremely bad programming form. leads to to many infinite loops.
klaus Expert Licensed User Longtime User Sep 30, 2011 #7 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
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.
M MM2forever Active Member Licensed User Longtime User Sep 30, 2011 #8 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
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