Skip to main content
May 11, 2015
Question

Adding to an array

  • May 11, 2015
  • 1 reply
  • 316 views

There is a textbox for the user to add their name, and 4 seperate ones to add a score per week. How can I make it so that the score is only added to the name specifically "called up". So if I enter the name :

John Smith

Score :

Week 1 : 5

Week 2 : 7

Week 3: 0

Week 4: 10

How can I make it so that the score 22 is only added in John Smith`s name and not the whole employee list?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
May 11, 2015

What does an array have to do with the data you are asking about?  You will need to explain how you have this data structured/stored.

May 11, 2015

Not quite sure i understand your question, but I have a seperate .as file which includes a list of employees, and I call that file up in my main .as file. The user would be adding data to an existing string (the score to the name) or create a new name with the score adding on to it

Ned Murphy
Legend
May 12, 2015

Yeah, explain how all of that is supposed to work.  Don't forget to include how the array fits in.