Append the supplied chain assumed to be HTML output, with the value found in the variable of the supplied name

Return TypeFunction nameArguments
hzEcodehzHttpEvent::GetVar(hzChain&,hzString&,)

Declared in file: hzHttpServer.h
Defined in file : hzHttpServer.cpp

Function Logic:

0:START 1:unknown 2:Return E_ARGUMENT 3:unknown 4:items 5:Return E_OK 6:unknown 7:items 8:Return E_OK 9:Return E_NOTFOUND

Function body:

hzEcode hzHttpEvent::GetVar (hzChain& Z)hzString& name, 
{
   //  Append the supplied chain assumed to be HTML output, with the value found in the variable of the supplied name
   //  
   //  Arguments: 1) Z  The chain to be aggregated with the variable's value
   //     2) name Of the variable to evaluate
   //  
   //  Returns: E_ARGUMENT If a variable name is not supplied
   //     E_NOTFOUND If the named varaible is not found in the event handler's maps
   //     E_OK  If the named variable is appended to the HTML output
   _hzfunc("hzHttpEvent::GetVar") ;
   if (!name)
       return E_ARGUMENT ;
   if (m_mapStrings.Exists(name))  { Z << m_mapStrings[name] ; return E_OK ; }
   if (m_mapChains.Exists(name))   { Z << m_mapChains[name] ; return E_OK ; }
   return E_NOTFOUND ;
}