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

how to use array value in classic asp

P: 1
Expand|Select|Wrap|Line Numbers
  1. Dim arrData1(13,5)
  2.     arrData1(0,1) = MonthName(12, true)&"-"&Right(PreYear-1,2)
  3.  
  4.  
  5.     For i=1 to 12
  6.     arrData1(i,1) = MonthName(i, true)&"-"&Right(PreYear,2)
  7.     next
  8.  
  9. For i=0 to UBound(arrData1)-1
  10.         strXML0 = strXML0 & "<category name='" & arrData1(i,1) & "' />"
  11.     Next
Feb 25 '13 #1
Share this Question
Share on Google+
1 Reply


P: 1
Expand|Select|Wrap|Line Numbers
  1. for i=0 to Noofdays
  2.           Dim arrData1(13,5)
  3. arrData1(0,1) = datepart("d",DATEADD("D",I,Kstarday))
  4.  
  5.  
  6.  
  7.          arrData1(i,1) = datepart("d",DATEADD("D",I,Kstarday))
  8.  
  9.          next
Feb 25 '13 #2

Post your reply

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