Android Question Can I use tabs in Stringbuilder?

Arf

Well-Known Member
Licensed User
Longtime User
I want to format some text so it appears something like this:

Unit SN: 0005
Firmware Rev: 1.833
PCB Rev: 1.0

but I cannot seem to get the spacing right if I use spaces in Stringbuilder

B4X:
sb.Append("Unit SN:        ".Append(sn).Append(CRLF)
sb.Append("Firmware Rev:   ").Append(fwver).Append(CRLF)

Can I use tabs somehow with stringbuilder?
 

stevel05

Expert
Licensed User
Longtime User
Are you using a monospaced font?
 
Upvote 0

Arf

Well-Known Member
Licensed User
Longtime User
TAB seems to insert single spaces, not sure I can set the tab width somehow.
I changed to monspaced font and the original approach works now, thanks.
 
Upvote 0
Top