Hi, this code give error on compilation, while in test compilation is ok!
while if I change local var in 'example' sub like: errorx, all is ok in compilation mode.
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
example
End Sub
Sub example
Dim error As Boolean = False
Dim aaa As String=""
If aaa.Trim = "" Then
error = True
End If
If error = True Then
Msgbox("error...","")
Return
End If
End Sub
Sub error As Boolean
Dim a As Int=0
If a=1 Then
Return True
End If
Return False
End Sub
while if I change local var in 'example' sub like: errorx, all is ok in compilation mode.