Announcement

Collapse
No announcement yet.

Push() Array Method

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Push() Array Method

    is it acceptable to increase the size of several arrays with push() using a loop? I have noticed that the first array gets resized ok but the others are 1 less.
    Paul Williams
    Strategy & Applications
    www.futurenets.co.uk

  • #2
    Hi,

    If you mean:

    for (i=0; i < nLength;i++){
    arrayOne.push(0);
    arrayTwo.push(0);
    arrayThree.push(0);
    }

    Then yes, it is possible. I do it all the time.

    G
    Garth

    Comment

    Working...
    X