Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Button As Button
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")
Button.Initialize("Button")
Button.Text="1"
Activity.AddView(Button,100dip,100dip,100dip,40dip)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button_Click
Dim B As Button = Sender
B.Text=Calcolo(B.Text,1)
' Anche cosi potrebbe andare
' Button.Text=Calcolo(Button.Text,1)
End Sub
Sub Calcolo(Valore As Int, Incremento As Int) As Int
Return (Valore+Incremento)
End Sub