J John Sparrow Member Licensed User Longtime User Dec 20, 2013 #1 Hi I am getting the following error. It is in Sub Globals. There is no try or catch in there just a load of DIM statements. I have searched for 'try' and 'catch' as part words but there is nothing like that. Any ideas? John Parsing code. 0.08 Compiling code. 0.11 Compiling layouts code. 0.02 Generating R file. 0.08 Compiling generated Java code. Error B4A line: 493 End Sub javac 1.7.0_25 src\com\visualsolve\SeeTheDirection\main.java:7754: error: 'try' without 'catch' or 'finally' try { ^ 1 error
Hi I am getting the following error. It is in Sub Globals. There is no try or catch in there just a load of DIM statements. I have searched for 'try' and 'catch' as part words but there is nothing like that. Any ideas? John Parsing code. 0.08 Compiling code. 0.11 Compiling layouts code. 0.02 Generating R file. 0.08 Compiling generated Java code. Error B4A line: 493 End Sub javac 1.7.0_25 src\com\visualsolve\SeeTheDirection\main.java:7754: error: 'try' without 'catch' or 'finally' try { ^ 1 error
thedesolatesoul Expert Licensed User Longtime User Dec 20, 2013 #3 Unless you use your Jedi powers. Upvote 0
J John Sparrow Member Licensed User Longtime User Dec 22, 2013 #5 Hi Code extract attached. Hope someone can help. John Attachments js code extract.txt js code extract.txt 11.8 KB · Views: 401 Upvote 0
LucaMs Expert Licensed User Longtime User Dec 22, 2013 #6 the problem is in: Code: Copy Dim AWSAddress As String = "https://s3-eu-west- 1.amazonaws.com/androidappfiles/VisualSolve+MasterFiles/" You can't split a String in that way. Code: Copy Dim AWSAddress As String = "https://s3-eu-west-" & _ "1.amazonaws.com/androidappfiles/VisualSolve+MasterFiles/" or write it on a single line. But i have one question: do you need so much "Dim" in one Activity??? If so, use #Region to group them. Upvote 0
the problem is in: Code: Copy Dim AWSAddress As String = "https://s3-eu-west- 1.amazonaws.com/androidappfiles/VisualSolve+MasterFiles/" You can't split a String in that way. Code: Copy Dim AWSAddress As String = "https://s3-eu-west-" & _ "1.amazonaws.com/androidappfiles/VisualSolve+MasterFiles/" or write it on a single line. But i have one question: do you need so much "Dim" in one Activity??? If so, use #Region to group them.
J John Sparrow Member Licensed User Longtime User Dec 22, 2013 #7 Thanks for the reply. That is not the problem. That is a single line in my code. It just got to run over two lines in the text version. Any other ideas? John Upvote 0
Thanks for the reply. That is not the problem. That is a single line in my code. It just got to run over two lines in the text version. Any other ideas? John
NJDude Expert Licensed User Longtime User Dec 22, 2013 #8 There's nothing wrong with the code you posted, the problem must be somewhere else on your code, but to better help you, you have to post ACTUAL EXECUTABLE CODE (your project) and indicate what extra libraries you're using. Upvote 0
There's nothing wrong with the code you posted, the problem must be somewhere else on your code, but to better help you, you have to post ACTUAL EXECUTABLE CODE (your project) and indicate what extra libraries you're using.
G galimpic Member Licensed User Longtime User Jan 7, 2016 #9 I was getting the same error, the reason was that I wrote just "Else" instead of "Case Else" in a Select statement. Strange, but true Upvote 0
I was getting the same error, the reason was that I wrote just "Else" instead of "Case Else" in a Select statement. Strange, but true