Android Question Help with error [main.java:263: error: not a statement]

KDHeard

Member
Licensed User
Longtime User
Hi all - I'm totally stuck and the oracle Google is not helping.

I get the following error when it try create a DB:

Compiling generated Java code. Error
B4A line: 56
CreateDBs
javac 1.7.0_25
src\fivewhy\prassoistic\main.java:263: error: not a statement
mostCurrent._createdbs;

Has anyone else had this?

Thanks in advance
 

KDHeard

Member
Licensed User
Longtime User
Hi eps - code below:

'Activity module
Sub Process_Globals
DimFiveWhyAsSQL
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime AsBoolean)
If FirstTime Then
FiveWhy.Initialize(File.DirDefaultExternal, "FiveWhy", True)
EndIf
End Sub
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Which line of that is line 56?

Can you enclose the code in code delimiters and space it out a bit, to make it easier to read as well.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
What version of B4A are you using?

It looks like the End If statement is incorrect... i.e. it needs a space in-between the End and If....
 
Upvote 0

KDHeard

Member
Licensed User
Longtime User
Hi eps: the first lot of code is in an activity called CreateDBs

this code is from an activity called Main:

Sub Activity_Create(FirstTime AsBoolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
'Start DBs
Activity.Initialize(CreateDBs)
 
Upvote 0

KDHeard

Member
Licensed User
Longtime User
Hi eps - I think I may have figured it out.

I was working on an earlier version of B4A (2.25) - I have just bought and upgraded to 2.71 - and it seems to be running okay now.

?
 
Upvote 0
Top