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
2
Posts: 6
Reputation: 610

Post » Wed Jun 24, 2015 11:43 am

tokenat(string,loopindex,newline)... should work..
newlineSeparator.capx
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896


Return to How do I....?

Who is online

Users browsing this forum: Bootfit, Huemerson, jorgmaquoi and 5 guests