By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

Loop Logic question

P: 4
I am having a little issue with this script:

Expand|Select|Wrap|Line Numbers
  1.   // loop thru the rows based on the selection of the user
  2.   for (var i = XLSRowFrom; i <= XLSRowTo; i++)
  3.    {
  4.     XLSArray[i] = oXLS.ActiveSheet.Cells(i -1 ,1).value
  5.     alert(XLSArray);       // -----------------------> results (,,,8,9,10)        should be (8,9,10)
  6.     }     
  7.  
Any ideas?
Aug 2 '09 #1
Share this Question
Share on Google+
2 Replies


Expert 10K+
P: 11,448
This is Javascript code; you posted your question in the Java forum so I moved it.

kind regards,

Jos
Aug 3 '09 #2

gits
Expert Mod 5K+
P: 5,390
just check the value before adding it to the array ...

kind regards
Aug 3 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.