Greetings to everyone!
I'm Carlos and this is my first message here. First of all, i want to thank everyone on this community, i've learned a lot because of your examples and questions. Thanks so much!.
I usually make apps on B4A but recently, i've acquired a license for B4i. It's works like a charm!
But i got a question. On B4A i usually use this to format a label text:
l.Text = format("| %1$-5.10s | %2$11.30s | %3$12.30s | %4$10.30s | %5$10.20s",Array(Value1,Value2,Value3,Value4,Value5))
Where "l" is a Label and Value1 to 5 are some random values (Some strings and some integers). I'm using this (taken from an example on the B4A forum) to format the text before using it on the label:
Sub inline As JavaObject
Return Me
End Sub
Sub format(f As String,a() As Object) As String
Return inline.RunMethod("format",Array(f,a))
End Sub
#if java
import java.lang.String;
static public String format(String f,Object... args){
return String.format(f,args);
}
#end if
I want to do the same, but on B4i!. Is there any chance for you to help me with this? Is it possible to do something similar on B4i?.
In any case, i want to thank you again for all your efforts. This community is amazing!.
Regards from Chile and have an awesome week!!!.
- Carlos