Android Question How to use CHR(9) in BETTERDIALOGS

Gianni Sassanelli

Active Member
Licensed User
Longtime User
Hi
i'm using betterDialogs libs in my app, for display long message to user

Is possible to insert CHR(9) in Message String?
For Example:
B4X:
dim msg as String
msg = $"First Line
${CHR(9)} indented second line
${CHR(9)} indented third line "$
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
CRLF is Carriage Return (Enter)

You can just use TAB itself or
Since you are using smart string you can create the space for tab yourself (4 spaces usually)
 
Upvote 0

Gianni Sassanelli

Active Member
Licensed User
Longtime User
BETTERDIALOGS accept some html tags.
for example if i want to insert a carriage return my string is
B4X:
' insert a carriage return and line feed'
msg = "my first Line <BR> my second line"

' insert some spaces from two word'
msg = "my first word &nbsp;&nbsp; my second word after 2 spaces"

Now i want to know if exist a tag that simulates a TAB character in html this is &#09 but not work in better dialog
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Now i want to know if exist a tag that simulates a TAB character in html
Since a Tab is equivalent to 4 spaces, why not use 4 spaces like this: &nbsp;&nbsp;&nbsp;&nbsp;
see this link:
 
Upvote 0
Top