Literal strings Corona Moon

Asked

Viewed 46 times

2

I’m a little lost in the use of \t. On the console, it works and in the simulator it is ignored. If anyone knows of a possible solution.

local myText = display.newText("a\tb", 200, 100, native.systemFont, 16)
print(myText.text)

Or:

a = "oi"
b = "teste"
local myText = display.newText(a.."\t"..b, 200, 100, native.systemFont, 16)
print(myText.text)
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.