Arf Well-Known Member Licensed User Longtime User Feb 20, 2016 #1 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?
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 Feb 20, 2016 #2 Are you using a monospaced font? Upvote 0
somed3v3loper Well-Known Member Licensed User Longtime User Feb 20, 2016 #3 Did you try B4X: TAB ? Upvote 0
Arf Well-Known Member Licensed User Longtime User Feb 20, 2016 #4 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
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.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #5 The answer is yes. You can insert any character you like to a StringBuilder. Upvote 0