frustrated newbie

bernie82

Member
I finally got all my ducks in a rowr and tried to compile the hello world app.
I followed the example and got the message, "Process global is missing". OK, maybe the guy who wrote the example had a bad day. I added "process global.

Ran it again and got:
Compiling code. Error
Error compiling program.
Error description: Missing parameter.
Occurred on line: 14
Msgbox ("hello world")
Word: )

Here's my hello world statement:
Sub app_start
Msgbox ("hello world")
End Sub

Please tell me I'm stupid. I don't want to put on the guy who wrote the example.
 

bernie82

Member
Made the correction and now get"

Compiling code. 0.05
Compiling layouts code. 0.00
Generating R file. 0.59
Compiling generated Java code. Error
 
Upvote 0

bernie82

Member
My project:

'Activity module
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.

End Sub

Sub app_start


Msgbox ("hello world", "")

End Sub
 
Upvote 0

ZeroSoft

Member
Licensed User
Longtime User
Hi,
your main activity should look like this

B4X:
'Activity module
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)
 Msgbox("Hello world","My first app")
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

I hope this helps:)
 
Upvote 0
Top