Initializing global public variables

corwin42

Expert
Licensed User
If I try to initialize global variables which are declared as public on the same line as the declaration I get very strange error message.

B4X:
Sub Globals
 Public someVariable = 1
End Sub
gives error

B4X:
Sub Globals
 Public someVariable
 someVariable = 1
End Sub
is fine

Greetings,
Markus
 
Top