Loop Logic question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkjame
    New Member
    • Nov 2007
    • 4

    Loop Logic question

    I am having a little issue with this script:

    Code:
      // loop thru the rows based on the selection of the user
      for (var i = XLSRowFrom; i <= XLSRowTo; i++)
       {
        XLSArray[i] = oXLS.ActiveSheet.Cells(i -1 ,1).value
        alert(XLSArray);       // -----------------------> results (,,,8,9,10)        should be (8,9,10)
        }
    Any ideas?
    Last edited by gits; Aug 3 '09, 07:24 AM. Reason: added code tags
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    This is Javascript code; you posted your question in the Java forum so I moved it.

    kind regards,

    Jos

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      just check the value before adding it to the array ...

      kind regards

      Comment

      Working...