0

Example:

var arr_1:Array = new Array();
arr_1.push({sdate:"2010-02-02",status:"New"});
arr_1.push({sdate:"2010-02-03",status:"New"});
arr_1.push({sdate:"2010-02-04",status:"New"});
arr_1.push({sdate:"2010-02-05",status:"New"});

How can i change element number 3 status to: "Old", without removing it. just update the status value??

1 Answer 1

3
arr_1[3].status = "Old";

Keep in mind, though, that this is a 0 (zero) based array, so the index 3 will be the 4th element in the array.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.