I am getting _
[<B4IPanelWrapper 0x145e06e0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key bi.
This occurs on the return statement at the end of this block of code.
When I| take this code out into a small test program it works ok, but not in my app. Any help greatly apprieciated as Ive just started to convert my app from B4A.
[<B4IPanelWrapper 0x145e06e0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key bi.
This occurs on the return statement at the end of this block of code.
When I| take this code out into a small test program it works ok, but not in my app. Any help greatly apprieciated as Ive just started to convert my app from B4A.
B4X:
Sub cliLabel(text As String,text2 As String, text3 As String) As Panel
Dim p As Panel
p.Initialize("")
p.Color=Colors.DarkGray
p.Left = 0%x
p.Top= 0%y
Dim l As Label
l.Initialize("")
l.text = text
l.SizeToFit
l.TextColor = Colors.Yellow
p.AddView(l,38%x,1dip,8%x,25dip)
Dim l2 As Label
l2.Initialize("")
l2.text = text2
l2.SizeToFit
l2.TextColor = Colors.Yellow
p.AddView(l2,82%x,1dip,8%x,25dip)
Dim l3 As Label
l3.Initialize("")
l3.text = text3
l3.SizeToFit
l3.TextColor = Colors.Yellow
p.AddView(l3,90%x,1dip,8%x,25dip)
Return p
End Sub
Last edited: