Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 14th, 2006, 01:33 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default Object required: 'rs' error

Hello all
Is there any one can help me to fix my prbolem with this error please?
the code is as below and when i run the program it gives me this error:
a= array("rs",..."rsn")
Dim i
for i=0 to n
a(i).movefirst()
while not a(i).eof
do something
wend
next
 would you please help me??????
thank you

Reply With Quote
  #2 (permalink)  
Old March 14th, 2006, 01:45 AM
Wrox Technical Editor
 
Join Date: Nov 2005
Location: , , Canada.
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use the For Each loop,

a = array("rs",..."rsn")
For Each arrayElement In a
    'do something
Next

Here's a Tutorial on VBScript Looping Statements: http://www.w3schools.com/vbscript/vbscript_looping.asp

- A.Kahtava
Reply With Quote
  #3 (permalink)  
Old March 14th, 2006, 02:29 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

I did as you told.but it still gives me same error.rs is the name of a recordsets.can it be cause i used recordsets in an array????

Reply With Quote
  #4 (permalink)  
Old March 14th, 2006, 06:34 AM
Wrox Technical Editor
 
Join Date: Nov 2005
Location: , , Canada.
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes; it's probably because your recordset is in an array..
Could you post your source code with the error message?

- A.Kahtava
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Required error voyeur Javascript 9 January 25th, 2008 10:50 AM
object reqiured:rs error hastikeyvan Classic ASP Databases 1 March 14th, 2006 01:56 AM
object reqiured:rs error hastikeyvan Classic ASP Professional 1 March 14th, 2006 01:47 AM
Object required error ?? hman SQL Server ASP 11 June 21st, 2004 10:59 AM
error....Object required: '' sassenach Classic ASP Databases 2 August 4th, 2003 03:27 PM



All times are GMT -4. The time now is 07:34 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.