EnvObjs is a collection of web server environment variables. Each variable is represented as a CGIObj containing the name-value pair of the specified variable.
Returns the number of Envobj objects contained in the specified EnvObjs collection.
Object.Count
Long.
Read-only.
By default, Item method will be called for EnvObjs collection.
This example retrieves the number of variables and the HTTP_REFERER environment variable.
Set envvars=doc.envvars
Print "Total number of environment variables"&envvar.count
Print "This customer is directed
from"&envvar.item("HTTP_REFERER")
Returns the EnvObj object corresponding to the given index.
Object.Item ( index As Variant)
CGIObj
By default, Item method is called for EnvObjs collection.
This example retrieves the number of variables and the HTTP_REFERER environment variable.
Set envvars=doc.envvars
Print "Total number of environment variables"&envvar.count
Print "This customer is directed
from"&envvar.item("HTTP_REFERER")