Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I've spent 2 days on this darn blasted problem. All I want to do is load values into an array and then do a search in the array for a value and if it is in the array to then populate a text box. I've looked at all the tutorials/videos and it just ain't working.
Here's a link to the capx file: https://drive.google.com/open?id=0B8diIdBYzw0cc3lZRFF1R21nOFk
What am I doing wrong?
Thanks much!
Develop games in your browser. Powerful, performant & highly capable.
You need to "Save as single file" and post that.
My bad...thanks Blackhornet. Here's the link to the single file:
https://drive.google.com/open?id=0B8diIdBYzw0cQU1YVlJtYjE3TFU
The problem is you aren't stripping out the 'newlines', since they still count as characters, but you are separating on '|'. Use trim(tokenat(ajax.LastData,d,"|")) as your value to get rid of the extra whitespace, in this case.
Super Thanks, BlackHornet!
Follow-up Question: Why don't any of the "available" tutorials (video or otherwise) have that language in their solutions, but they apparently still work?
Again mucho thanks!