IStringList
collection
A list of values associated with a
Request
collection variable name.Usage
id= Request("id") ' usually there is just one value
For i= 1 To Request("ids").count ' sometimes there can be several
lookupid Request("ids").item(i) ' access the i-th value
lookupid Request("ids")(i) ' alternate access method
Next
Members
- Returns the number of items in the list.
- Returns the string from the requested position.
Count
propertyItem
(
index )
methodDetails
Request
collections contain the values of variables passed to the ASP page, usually via forms. These variables can contain multiple values, using an HTML select-multiple list, or just by giving multiple fields the same name. All values in these collections are returned as an IStringList
, an array of strings values. Using the default IStringList member returns the values separated by a comma and a space, or just the value if there is only a single list element. For example, for a query string of ?x=5&x=7&x=11
, Request("x")
would return 5, 7, 11
, and Request("x")(2)
would return 7
.
Nenhum comentário:
Postar um comentário