Collection object in ASP

I

Ivan Debono

Hi,

How is it possible to instantiate an new collection in asp serverside??

Thanks,
Ivan
 
D

Dave Anderson

Ivan said:
How is it possible to instantiate an new collection in asp
serverside??

That's a bit nonspecific for a short answer. What exactly are you trying to
accomplish?



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
R

Ray Costanzo [MVP]

Also tell us what language you're using too please, vbscript or jscript?

Ray at work
 
D

Dave Anderson

Ray said:
Also tell us what language you're using too please, vbscript or
jscript?

You're taking away my fun now, Ray.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
R

Ray Costanzo [MVP]

Sorry about that. :]

Ray at work

Dave Anderson said:
You're taking away my fun now, Ray.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message.
Use
of this email address implies consent to these terms. Please do not
contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
I

Ivan Debono

Sorry about the hassle. I'm using vbscript, and I want to use the Collection
object found in VB.

I was searching a little and found 2 options:

1. Scripting.Dictionary
2. Session.Contents

Which one would you guys suggest??

Thanks,
Ivan
 
R

Ray Costanzo [MVP]

Dictionary object is the most suitable replacement for a collection object,
which you probably read is not supported in vbscript. Sometimes an array is
more appropriate though, depending on the functionality that you need.

Ray at work
 
R

Roland Hall

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message : Dictionary object is the most suitable replacement for a collection
object,
: which you probably read is not supported in vbscript. Sometimes an array
is
: more appropriate though, depending on the functionality that you need.
:
: Ray at work

I thought a dictionary object was similar to a PERL associative array and it
is supported in vbscript. Did I misread your response?
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 
R

Ray Costanzo [MVP]

Maybe I didn't word it real well. What I meant is, yes, a
Scripting.Dictionary is supported, but not a "set x = New Collection" as in
VB.

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top