Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private tempreture As EditText
Private ctof As Button
Private ftof 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")
Activity.LoadLayout(" tempreture")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub ctof_Click
Dim result As Float
[COLOR=#ff4d4d]line 46 ( here an error ) [/COLOR]result=(( tempreture.Text+40)*9/5)-40)
Msgbox(NumberFormat(result,1,2)"The value in Fahrenheit is")
tempreture.text=""
End Sub
.