wwrequest::GetUrlEncodedKeyCollection

Allows enumerating and parsing of any Url Encoded list of values into a collection of Key and Value property objects.

Allows retrieving:

  • All Form Variables (cFormVars)
  • All QueryString Variables (cQueryString)
  • All ServerVariables (cServerVars)

Note that cFormVars has a dedicated GetFormVarCollection() method to retrieve all values. QueryString and ServerVariables don't have dedicated methods and it's for enumerating these that this method is useful.

loQueryCol = Request.GetUrlEncodedKeyCollection(Request.cQueryString)
FOR EACH loQuery IN loQueryCol FOXOBJECT
    ? loQuery.Key
    ? loQuery.Value
ENDFOR
o.GetUrlEncodedKeyCollection(lcVars, lcPrefix)

Return Value

Collection of objects with Key and Value properties.

Parameters

lcVars
The full url encoded list of values.

lcPrefix
Optional - prefix for key values to retrieve.


See also:

Class wwrequest

© West Wind Technologies, 1996-2024 • Updated: 04/03/23
Comment or report problem with topic