wwrequest::GetFormVarCollection

Retrieves a collection of all the form variables keys and values in the Request.Form() collection so you can iterate the variables.

The collection contains an object that has Key and Value properties.

o.GetFormVarCollection(tcPrefix)

Parameters

tcPrefix
Optional prefix for the name of the values to retrieve.

Example

loVars = Request.GetFormVarCollection()

*** Iteration of the list
FOR lnX = 1 to loVars.Count
   loVar = loVars.Item(lnX)
   lcKey = loVar.Key
   lcValue = loVar.Value
ENDFOR

*** Access by key
lcName = loVars.Item("txtName")

See also:

Class wwrequest

© West Wind Technologies, 1996-2018 • Updated: 11/09/18
Comment or report problem with topic