Probably another "not seeing the forest for the trees" question...
It is a nasty problem when combining some substrings together for putting the whole string finally then to an email.
Why is TAB not really working in this code in opposite to CRLF? Is there a need for defining TAB before using it? Could not find an answer within the forum.
So far my workaround is to determine the length of the substrings and filling the "missing" space with a calculated amount of spaces.
This works well for monospaced fonts. The use of TAB would be much better and easier in this case, because:
Imagine you are using the variable ECont later for filling an Email with text. I am sure, the email-program (whatever it is) is not using a monospaced font.
Any ideas are very welcome.
Cheers BV
It is a nasty problem when combining some substrings together for putting the whole string finally then to an email.
B4X:
ECont = ECont & "This is the first substring:" & TAB & Label1.Text & CRLF
ECont = ECont & "This is the second substring:" & TAB & Label2.Text & CRLF
ECont = ECont & "This is yet the last substring:" & TAB & Label3.Text & CRLF
Why is TAB not really working in this code in opposite to CRLF? Is there a need for defining TAB before using it? Could not find an answer within the forum.
So far my workaround is to determine the length of the substrings and filling the "missing" space with a calculated amount of spaces.
This works well for monospaced fonts. The use of TAB would be much better and easier in this case, because:
Imagine you are using the variable ECont later for filling an Email with text. I am sure, the email-program (whatever it is) is not using a monospaced font.
Any ideas are very welcome.
Cheers BV