iOS Question Host Builder compilation error

b4auser1

Well-Known Member
Licensed User
Longtime User
Sending data to remote compiler. Error
B4i line: 142
Select Tag
unexpected '@' in program
 

b4auser1

Well-Known Member
Licensed User
Longtime User
I did find the route cause in my code:

Error if code fragment looks like:
B4X:
Public Sub Page_BarButtonClick (Tag As String)
    Select Tag

#If B4A
        Case "Back"
            ...
#End If        

End Select
End Sub

No error if code fragment looks like:

B4X:
Public Sub Page_BarButtonClick (Tag As String)
#If B4A
    Select Tag
        Case "Back"
            ...
    End Select
#End If          
End Sub
Ideally, if B4i compiler will raise error in this situation before sending to Objective-c compiler
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…