Hello All,
I have a sub that takes a focus event and i am getting this error. The sender is a b4xfloattextfield
Error in the first line of the sub
Expected: UIView, object type: b4i_b4xfloattextfield
Any ideas why ? The exact same code works fine in Android (B4A)
I have a sub that takes a focus event and i am getting this error. The sender is a b4xfloattextfield
Error in the first line of the sub
Expected: UIView, object type: b4i_b4xfloattextfield
Focus Sub:
Sub CLAItemEditValue_FocusChanged (HasFocus As Boolean)
Dim BX4Temp As B4XView = Sender
Dim ThisParent As View = BX4Temp.Parent
LASTEDITBOXFOCUS = BX4Temp
Dim BigTag As String = ""
If (BX4Temp Is B4XFloatTextField) Then
Dim this As B4XFloatTextField = BX4Temp
SetMainPanelColor(ThisParent, HasFocus)
If (HasFocus = True) Then
this.TextField.SelectAll
RETURNFROMSEARCH = False
Else
CLAItemEditValueReturnFromFloatEditBox (this)
End If
NONCLICK = 0
Else
Dim this1 As TextField = BX4Temp
SetMainPanelColor(ThisParent, HasFocus)
If (HasFocus = True) Then
this1.SelectAll
RETURNFROMSEARCH = False
Else
Dim btnTag As RequestCLAItem = BX4Temp.tag
CLAItemEditValueReturnFromEditBox (this1)
End If
NONCLICK = 0
End If
End Sub
Any ideas why ? The exact same code works fine in Android (B4A)