Thanks guys. I'm still not convinced that I should be declaring the OO array any differently than I am already. I'm basing this on the fact that isArray(gvobjCart.Items) returns true and I can loop through gvobjCart.Items by...

For Each gvstrElement in gvobjCart.Items
   response.write "<P>gvstrElement: " & gvstrElement
Next

...which iterates through all the "fields" for each "record" and then moves to the next "record" and does the same.

So I would think that gvobjCart.Items IS an array - it's just that I don't seem to be able to reference it in the normal way. Bearing in mind also that if I use a normal variable and assign the recordset to it - everything works fine. ie. I don't have to declare garrCart as an array...

Dim garrCart
garrCart = dbRS.GetRows()

...works fine.

I don't know, maybe you are right Jure, maybe it is something to do with explicitly creating clsCart.Items as an array in the class. But I have tried playing around with that without success.

Any other clues?

Thanks a lot,

Clancy


From: "Ross Clutterbuck" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: ASP Arrays OO
Date: Wed, 11 Aug 2004 17:54:06 +0100

I'll have a proper look for you as soon as I can Clancy but for now

Jure said:
> The second thing is indexing: Arrays don't start at 0, but instead at 1

In VBScript Arrays DO start indexing at 0 so Clancy's referencing (0, 0) is
correct.

MOU



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


_________________________________________________________________
Surf the net and talk on the phone with Xtra JetStream @ http://xtra.co.nz/jetstream



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.



Reply via email to