By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,509 Members | 1,306 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,509 IT Pros & Developers. It's quick & easy.

Collection object in ASP

P: n/a
Hi,

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

Thanks,
Ivan
Jul 21 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Ivan Debono wrote:

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.
Jul 21 '05 #2

P: n/a
Also tell us what language you're using too please, vbscript or jscript?

Ray at work

"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:O2**************@TK2MSFTNGP15.phx.gbl...
Ivan Debono wrote:

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.

Jul 21 '05 #3

P: n/a
Ray Costanzo [MVP] wrote:
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.
Jul 21 '05 #4

P: n/a
Sorry about that. :]

Ray at work

"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
Ray Costanzo [MVP] wrote:
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.

Jul 21 '05 #5

P: n/a
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

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> schrieb im
Newsbeitrag news:ut**************@TK2MSFTNGP12.phx.gbl...
Also tell us what language you're using too please, vbscript or jscript?

Ray at work

"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:O2**************@TK2MSFTNGP15.phx.gbl...
Ivan Debono wrote:

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.


Jul 21 '05 #6

P: n/a
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

"Ivan Debono" <iv******@hotmail.com> wrote in message
news:OI*************@TK2MSFTNGP10.phx.gbl...
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

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> schrieb im
Newsbeitrag news:ut**************@TK2MSFTNGP12.phx.gbl...
Also tell us what language you're using too please, vbscript or jscript?

Ray at work

"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:O2**************@TK2MSFTNGP15.phx.gbl...
Ivan Debono wrote:

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.



Jul 21 '05 #7

P: n/a
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******************@TK2MSFTNGP14.phx.gbl...
: 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

Jul 21 '05 #8

P: n/a
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

"Roland Hall" <nobody@nowhere> wrote in message
news:OK**************@TK2MSFTNGP14.phx.gbl...
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******************@TK2MSFTNGP14.phx.gbl...
: 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

Jul 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.