Hi,
I have a string:
I need to put this on a label in 2 lines, so
This works fine, but I want the first line Size 18 and the second line Size 12. How can I do this?
I tried something like this:
But did not succeed.
Can someone help?
Kind regards,
André
I have a string:
B4X:
Dim Naam as String = "Jan Jaap - Hoofdstraat 1 Amsterdam"
I need to put this on a label in 2 lines, so
B4X:
Dim lblNaam as label
lblNaam.Initialize
lblNaam.text = Naam.Replace(" - ",CRLF)
This works fine, but I want the first line Size 18 and the second line Size 12. How can I do this?
I tried something like this:
B4X:
Dim BB As BBCodeView
BB.Initialize("","")
BB.Text=naam'.Replace(" - ",CRLF)
BB.Text="[TextSize=18]"&naam.SubString2(0,naam.IndexOf(" - "))&"[/TextSize]"
BB.Text=BB.Text&CRLF&"[TextSize=11]"&naam.SubString2(naam.IndexOf(" - ")+3,naam.Length)&"[/TextSize]"
But did not succeed.
Can someone help?
Kind regards,
André