[thelist] Length of ASP request.form object
Feingold Josh S
Josh.S.Feingold at irs.gov
Fri Feb 22 09:56:00 CST 2002
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
David -
Thanks. I guess there is no way to get the length otherwise, then. It
seems like MS should have put in a count function for a collection. I guess
if we go there, there are a lot of things MS should have done...
Some other options I thought of include:
1) Do a RE search for & in request.form then add one.
2) Throw each item into an array then get the length of the array.
Josh
-----Original Message-----
From: David at softv.net [mailto:David at softv.net]
Sent: Friday, February 22, 2002 10:54 AM
To: thelist at lists.evolt.org
Subject: RE: [thelist] Length of ASP request.form object
Dim i
Dim item
For Each item In Request.Form
Response.Write item.name & " " & item.value
i = i + 1
Next
Response.Write i & " items"
That should give you the total count of objects in the Form collection
(something like that)...
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list