strange that
Tag does not work neither
parent with a simple button using b4xview instead of panel and
B4XFloatTextField, instead of
FloatLabeledTextField. What could I be doing wrong?
Sub CLAButtonSearchTextCall(this As B4XFloatTextField, othis As Button)
ShareCode.isChapterSearch = False
Dim pthis As B4XView = this.parent <--- Error (Unknown member: parent)
End Sub
Sub CLAButtonSearchText_Click
Dim this As Button = Sender
Dim pthis As B4XView = this.Parent
Dim ftxt As B4XFloatTextField = pthis.Getview(3)
Log(ftxt.Tag) <--- Error ([<B4IPanelView 0x109bfc360> valueForUndefinedKey:]: this class is not key value coding-compliant for the key _tag.)
CLAButtonSearchTextCall(ftxt, this)
End Sub
How come a B4XFloatTextField does not have the parent property ?
I am sure that I am doing something wrong, but what?
Dim this As B4XFloatTextField
Dim pThis As B4XView = this.parent <-- property does not exists
Even with mBase I get the same error ([<B4IPanelView 0x1261d26a0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key _mbase.)
in the code_
Dim pThis As B4XView = this.mBase.parent
Can someone, please help ?