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!
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
Develop games in your browser. Powerful, performant & highly capable.
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!