How do I print values from an array

Get help using Construct 2

Post » Thu Dec 11, 2014 7:01 am

I have an array filled with text, or values that are not 0


I am trying to print them int a text box to make sure they are filling correctly.
I have
Array for each XYZ element
Array current value (notequal) 0 => Textbox Append Array.CurValue




It just seems to be infinitely printing the data. Am I missing a condition?
B
5
Posts: 18
Reputation: 261

Post » Thu Dec 11, 2014 7:36 am

Make it happen on a trigger, e.g. on button press. Or put a 'system: trigger once' before the for each.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Thu Dec 11, 2014 2:56 pm

Would this work if i wanted to loop through two arrays of the same size if i made another for each element for the 2nd array?

Im not at my comp now but i believe its being called with a funcrion trigger
B
5
Posts: 18
Reputation: 261

Post » Thu Dec 11, 2014 9:10 pm

Without a capx, it's guesswork.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sun Dec 14, 2014 6:50 pm

For fill an array
You do not have the required permissions to view the files attached to this post.
B
18
S
2
Posts: 24
Reputation: 888


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, el3um4s, marcoscodas, TylerJS and 11 guests