B4J Question Select Case compiling problems

uniplan

Active Member
Licensed User
Longtime User
Dears,

I found out a case where the B4J commpilation does not give errors,
but errors are raised when generating java code :

Select var
Case const1
...code
Case const2
...code
Else 'hence missing the keyword Case => Case Else
...code
End Select

for example

Private Sub foo1(cmdMode As Int) As String
Select cmdMode
Case 0
Return "?"
Case 1
Return "="
Else
Return ""
End Select
End Sub

determines an error like

B4J version: 4.01
Parsing code. (0.06s)
Compiling code. (0.21s)
Compiling layouts code. (0.00s)
Compiling generated Java code. Error
B4J line: 263
Return \
javac 1.8.0_66
src\b4j\example\simcomatcmdmanager.java:345: error: <identifier> expected
RDebugUtils.currentLine=3538954;
^
1 error
 
Dear Erel,

the focus is that for this kind of sintax errors there is no graphic support
able to go on the erroneous line with just a click.

Thanks.
 
Upvote 0
Back
Top