Public Sub SetTextOrCSBuilderToLabel(xlbl As B4XView, Text As Object)
#if B4A or B4J
xlbl.Text = Text
#else if B4i
If Text Is CSBuilder And xlbl Is Label Then
Dim lbl As Label = xlbl
lbl.AttributedText = Text
Else
If GetType(Text) = "__NSCFNumber" Then Text = "" & Chr(Text)
xlbl.Text = Text
End If
#end if
End Sub