Android Question Strange error when compiling

bashka_abdyli

Member
Licensed User
Longtime User
shell\src\ProDataFin\Phone\shitjaactivity_subs_0.java:519: error: not a statement
shitjaactivity.mostCurrent._shitjaactivity2;
^



What is the problem ?
 

bashka_abdyli

Member
Licensed User
Longtime User
I have written in one class the Activity name like:

ActivitySales

instead of

StartActivity(ActivitySales)

B4A does not give any error when you compile error happens.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
@bashka_abdyli you send cryptic message.
Example... ActivitySales may be a variable
if i write this code:
B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    Log(ActivitySales)
End Sub

Sub ActivitySales As Int
    a = 5
    b = 3
    c = a + b
    Return c
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

this will work of course
 
Upvote 0
Top