3.9 QueryString Collection

Retrieves the values of the variables in the HTTP query string.

The HTTP query string is specified by values following the "?" (question mark). Different processes can generate a query string. For example, the anchor tag <A HREF="example?string=this is a sample">string sample</A> generates a variable named "string" with the value "this is a sample". Query strings are also generated by sending a form, or by typing a query into the address box of your browser.

3.9.1 Count property

Returns the total number of Variable objects in the QueryString collection.

Syntax

Object.Count

Type

Long.

Attributes

Read-only.

3.9.2 HasMoreElements property

Determines whether the QueryString collection contains more Variable objects.

Syntax

Object.HasMoreElements

Type

Boolean.

Attributes

Read-only.

3.9.3 Element method

Retrieves the Variable object corresponding to the specified key value.

Syntax

object.Element(
   Key As AnyType)

Parameters

Key

String/Integer. String value corresponds to the name of the variable and Integer value represents the variable's index.

Return Values

Variable object.

3.9.4 Item method

Retrieves the Variable object corresponding to the specified key value.

Syntax

object.Item(
   Key As AnyType)

Parameters

Key

String/Integer. String value corresponds to the name of the variable and Integer value represents the variable's index.

Return Values

Variable object.

3.9.5 Next method

Retrieves the next Variable object from the collection.

Syntax

object.Next()

Parameters

None.

Return Values

Variable.

3.9.6 Reset method

Resets the pointer to the first variable object in that collection.

Syntax

object.Reset()

Parameters

None.

Return Values

Void.