468,514 Members | 1,035 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

I get this error : '800a01c2'

hi,

i het this error :

Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'offers'

/d6-test/index.asp, line 296

the code is:
Expand|Select|Wrap|Line Numbers
  1. <% i=0
  2.                         Dim offerNum
  3.                         offerNum = ubound(mydealerInfo.offers)
  4.                         for i=0 to offerNum
  5.                             offerCode=mydealerInfo.offers(i,0)
  6.                             offerLink=mydealerInfo.offers(i,1)
  7.                              If offerCode <> "" Then
  8.                                 If offerLink <> "" Then%>
  9.                                      <a href='<%=offerLink%>?centerNum=<%="&mydealerInfo.dealerNum&"%>&request='><%= offerCode %></a><%
  10.                                 Else
  11.                                      Response.Write "                            <li>"& offerCode & "</li>"
  12.                                 End If                            
  13.                             End If
  14.                         Next%>
  15.  
the line : offerCode=mydealerInfo.offers(i,0) is line 296.

if you can help me solve this problem i will be very happy!!!

thanks!!!
May 12 '10 #1
3 2299
nedu
65
@moranLiel
what is that mydealerInfo.offers meant for . . Is it an array from third party . .

Regards
Nedu
May 12 '10 #2
hi!this is the code for offers
Expand|Select|Wrap|Line Numbers
  1. strSQL11 = "SELECT count(*) as XX from DEALER_OFFERS where clientId='"+myDealerInfo.clientId+"';"
  2.     set rst22 = mobjConn.execute(strSQL11)
  3.     arraySize=rst22("XX")
  4.     Dim offers()
  5.     ReDim Preserve offers(arraySize,2)
  6.  
  7.     strSQL3 = "SELECT OFFER_DESC,linkDestination FROM DEALER_OFFERS where clientId='"+myDealerInfo.clientId +"' order by offer_code;"
  8.  
  9.     set rst3 = mobjConn.execute(strSQL3)
  10.     i=0    
  11.     Do while not rst3.eof
  12.         offers(i,0)= rst3("OFFER_DESC")
  13.         offers(i,1)= rst3("linkDestination")
  14.         i=i+1
  15.         rst3.movenext
  16.     loop
  17.  
  18.     myDealerInfo.weOffer = offers
  19.  
thanks!!!!
May 12 '10 #3
jhardman
3,405 Expert 2GB
then shouldn't you be looking for myDealerInfo.weOffer(i, 0) rather than offerCode=mydealerInfo.offers(i,0)?

Jared
May 18 '10 #4

Post your reply

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

Similar topics

3 posts views Thread by ABC | last post: by
5 posts views Thread by Andrew | last post: by
1 post views Thread by mario.zoric | last post: by
5 posts views Thread by maya | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.