B4X:
VB.NET program that uses padding String
Module Module1
Sub Main()
' Format String.
Dim format As String = "{0,-10} {1,10}"
' Construct lines.
Dim line1 As String = String.Format(format, 100, 5)
Dim line2 As String = String.Format(format, "Carrot", "Giraffe")
Dim line3 As String = String.Format(format, True, False)
' Print them.
Console.WriteLine(line1)
Console.WriteLine(line2)
Console.WriteLine(line3)
End Sub
End Module
B4X:
Output
100 5
Carrot Giraffe
True False
as you can see the text is formated perfectly, first string of first line is to the left and second srting to the right
and all 3 lines are formated the same.
i would liek to do this with a LV singleline label.text, is this possible?