473,408 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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 2494
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,406 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

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

Similar topics

2
by: Brian | last post by:
We have an ASP program we are testing. So far only 1 machine gets this error. Any suggestions where to look, in order to debug this error? Thanks in advance for your help! ASP caught this...
6
by: allenj | last post by:
DB21085I Instance "md" uses "32" bits and DB2 code release "SQL08012" with level identifier "02030106". Informational tokens are "DB2 v8.1.0.16", "s030508", "MI00048", and FixPak "2". Product is...
12
by: craig | last post by:
Quick question for the experts... Whenever I set the Image property of a PictureBox on one of my windows forms to a PNG graphic file on my hard drive, I get the following runtime error when I...
3
by: ABC | last post by:
I use ASP.NET 1.1, no any ASP.NET 2.0 features to use. Just the page name is ProductMaster to display product master information. How can I fixed this error? Server Error in '/MAXXWeb'...
5
by: Andrew | last post by:
Hello, friends, In our development machine, the .net web app worked fine. Then we deployed it to our server. However, it did not work on the server. After a user entered user name/pswd and...
1
by: mar-kav | last post by:
Hello, i'm a beginner so exuse me: i installed IIS 5.1, Framework1.1, vs .NET 2003 i put my web dir' in inetpub/wwwroot, tried to broows to my homepage under localhost & got this error message: ...
1
by: mario.zoric | last post by:
Hi to all! I have one big problem. I have written some code and I want to program at the end looks good but theres one uninspected error. What's going on? I have written code for programm that...
4
by: rohitdoke | last post by:
Hello, we are using IIS 6.0 and facing an error as Microsoft VBScript runtime error '800a01c2' Wrong number of arguments or invalid property assignment: 'verifychecksum' ...
5
by: maya | last post by:
hi, what is this error please? uncaught exception: Permission denied to call method Location.toString I see this error sometimes in FF error console but it says nothing about what causes...
2
by: prw8864 | last post by:
I can not see what is causing this error.... iterator has been defined properly, but the error seems to point to the interator type. Errors I get with g++ svector.c++ -o svector 2> ./err_txt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.