I get the following error, is a declaration as Radio Button not correct?
Compiling code. 0.14
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 55
If rdoTF = True Then
javac 1.6.0_25
src\KJ\E6B\dalt.java:260: inconvertible types
found : boolean
required: android.widget.RadioButton
if ((mostCurrent._rdotf).equals((android.widget.RadioButton)(anywheresoftware.b4a.keywords.Common.True))) {
^
1 error
Compiling code. 0.14
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 55
If rdoTF = True Then
javac 1.6.0_25
src\KJ\E6B\dalt.java:260: inconvertible types
found : boolean
required: android.widget.RadioButton
if ((mostCurrent._rdotf).equals((android.widget.RadioButton)(anywheresoftware.b4a.keywords.Common.True))) {
^
1 error
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim edtPA As EditText
Dim edtTemp As EditText
Dim lblDA As Label
Dim btnCalc As Button
Dim rdoTC As RadioButton
Dim rdoTF As RadioButton
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("pnlPage_dalt")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btnCalc_Click
Dim Temp As Int
Dim DA As Int
Dim T_S As Double
Dim T_act_K As Double
T_S = 273.15-(0.0019812 * edtPA.Text -15)
If rdoTF = True Then
T_act_K = (273.15+((edtTemp.Text + 40) / 9 * 5) -40)
Else
T_act_K = (273.15 + edtTemp.Text)
End If
DA = edtPA.Text +(T_S/0.0019812) * (1- Power((T_S / T_act_K), 0.2349690))
lblDA.Text = DA
End Sub