How do I use newline as a token for tokenat()

Get help using Construct 2

Post » Wed Jun 24, 2015 11:05 am

I am using tokenat() to parse image urls into an array in a loop. I tried tokenat(DocViewer_pageuri,loopindex,newline), tokenat(DocViewer_pageuri,loopindex,"\r"), and tokenat(DocViewer_pageuri,loopindex,"\n")

DocViewer_pageuri is a string of urls from the server.
Code: Select all
"example.com/image1.jpg\r
example.com/image2.jpg\r
exmaple.com/image3.jpg"


Then entire string gets placed into Array[0] instead of each url being placed in a separate element of the array.
B
12
S
3
Posts: 6
Reputation: 760

Post » Wed Jun 24, 2015 11:43 am

tokenat(string,loopindex,newline)... should work..
newlineSeparator.capx
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,104


Return to How do I....?

Who is online

Users browsing this forum: urkokan and 10 guests