Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset Array

Status
Not open for further replies.

minoad

Programmer
Mar 28, 2001
138
US
I have a piece of simple code, let say;
dim objrs
set objrs = server.createobject("adodb.recordset")
objrs DoConnStuff

Standard connection. Now at a later point in the code i see this:

objRs(5)

does anyone know what this is trying to accomplish. It apears as though it is accessing an array, but thier is no array created anywhere in the code.

Thanks

Micah A. Norman
 
Just accessing the 6th field of the recordset, where the field nums are 0-based:

So:
0 1 2 3 4 5
field1 field2 field3 field4 field5 field6

so:
rs("field1")
and
rs(0)

say the same thing, just in different ways.
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top