Hi.
I have an app. with 2 activities.
I call the second activity by calling StartActivity(Blah)
This is the error I get when just trying to compile:
Compiling code. Error
Error compiling program.
Error description: Missing parameter.
Occurred on line: 18
Activity.AddView(btn,10,10 100,100)
Word: )
the code is below. I cant figure out why I get the error !
Jeremy
'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)
Dim btn As Button
btn.Initialize("btn")
btn.Text="Close"
Activity.AddView(btn,10,10 100,100)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btn_click()
Activity.Finish
End Sub
I have an app. with 2 activities.
I call the second activity by calling StartActivity(Blah)
This is the error I get when just trying to compile:
Compiling code. Error
Error compiling program.
Error description: Missing parameter.
Occurred on line: 18
Activity.AddView(btn,10,10 100,100)
Word: )
the code is below. I cant figure out why I get the error !
Jeremy
'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)
Dim btn As Button
btn.Initialize("btn")
btn.Text="Close"
Activity.AddView(btn,10,10 100,100)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btn_click()
Activity.Finish
End Sub