How do I retrieve a single line in a multiple lines textbox

Get help using Construct 2

Post » Fri Sep 04, 2015 8:50 am

Hi everyone,

I'm working on a little tool and I have a bunch of numbers in a textbox like this

Image

I'm trying to create a loop that goes through each line, getting the info on it and using it to something else.

How can I achieve that?

Thanks!
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Fri Sep 04, 2015 12:29 pm

just use "newline" like separator...

varColor=tokenat(TextBox.Text,index,newline)

newlineSeparator.capx

Image
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Fri Sep 04, 2015 10:18 pm

Thank you!
B
125
S
43
G
41
Posts: 849
Reputation: 28,260


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 11 guests