How do I split text at tab? I am using "\t" now and it is not working

134 views
Skip to first unread message

Carlos Oliveira

unread,
Jul 24, 2017, 4:56:13 PM7/24/17
to MIT App Inventor Forum
How do I split text at tab? I am using "\t" now and it is not working

Abraham Getzler

unread,
Jul 24, 2017, 8:32:56 PM7/24/17
to MIT App Inventor Forum
You can use a trick of the Web component to generate a tab character.
See attached.

No actual web access is needed, just the blocks.

ABG

TAB.png
CRLF.aia

Evan Patton

unread,
Jul 25, 2017, 9:07:12 AM7/25/17
to MIT App Inventor Forum
Another possible solution (although less obvious what's happening) is to copy and paste a tab character from a text editor like Notepad into your text block. Because it is whitespace it will look like any other empty text block. I will look into why the "\t" doesn't work because it would have been my first intuition as well.

Evan

Abraham Getzler

unread,
Jul 25, 2017, 9:27:59 AM7/25/17
to MIT App Inventor Forum

Evan Patton

unread,
Jul 25, 2017, 1:29:06 PM7/25/17
to MIT App Inventor Forum
I have a fix for this working now. It should be out in the next release.

Evan

Abraham Getzler

unread,
Jul 25, 2017, 1:37:04 PM7/25/17
to MIT App Inventor Forum
You must have dived deep to find where this conversion happens.
ABG

Reply all
Reply to author
Forward
0 new messages