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.
Private EditText1 As EditText
Private EditText2 As EditText
Private EditText3 As EditText
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")
Activity.LoadLayout("test")
'EditText1.Text= 0
'EditText2.Text= 0
'EditText3.Text= 0
'Dim x As Double
'x = EditText1.Text
' x = NumberFormat(x,0,0)
End Sub
Private Sub EditText1_TextChanged (Old As String, new As String)
If EditText1.Text.Length= 0 Then
EditText1.Text= "0"
Else
Result
End If
End Sub
Private Sub EditText2_TextChanged (Old As String, new As String)
If EditText1.Text.Length= 0 Then
EditText2.Text= "0"
Else
Result
End If
End Sub
Private Sub EditText3_TextChanged (Old As String, new As String)
If EditText1.Text.Length= 0 Then
EditText1.Text= "0"
End If
End Sub
Sub Result()
Dim Num1 As Int
Dim Num2 As Int
Num1 = EditText1.Text
Num2 = EditText2.Text
EditText3.Text =Num1 +Num2
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub