Android Question text label does not columnates (Resolved)

anallie0

Active Member
Licensed User
Longtime User
hi
now I write and save a list file containing a few lines of text.
Some of these are to be wrapped. utilizing
B4X:
&Tab&
. When I print the file rows are in the column. if I view the same file in a text label does not columnates. is there any way to get this in a label?

print.jpg

Screenshot_2015-03-09-14-16-24.jpg
 

Troberg

Well-Known Member
Licensed User
Longtime User
I don't think the label has support for tabs.

Either load it into some kind of more advanced view, or use a fixed width font and add spaces as needed instead of tabs.
 
Upvote 0

anallie0

Active Member
Licensed User
Longtime User
I wrote this and now works

B4X:
Dim n As Int
Dim Gradi, Back, Sn, SGradi As String

For n= 0 To ListGradi.Size-1
Gradi=ListGradi.Get(n)
Back=ListBack.get(n)

Sn="     "
If n+1 < 10 Then Sn="       "
If n+1 > 99 Then Sn="     "

If Gradi.Length=2 Then SGradi = "         "
If Gradi.Length=3 Then SGradi = "       "
If Gradi.Length=4 Then SGradi = "     "

labelrepo.Text=labelrepo.Text & "Measurement n° "& (n+1) & Sn & Gradi & SGradi & Back & CRLF
Next
ok.png
 
Upvote 0
Top