CCFXRequest::Debug
Syntax
BOOL CCFXRequest::Debug(void)
Description
Checks whether the tag contains the
write debug information for a request. For more information, see
Returns
Returns True if the tag contains the DEBUG attribute; False, otherwise.
Example
The following example checks whether the
debug message:
if ( pRequest->Debug() )
{
pRequest->WriteDebug( "Top secret debug info" ) ;
}
CCFXRequest::GetAttribute
Syntax
LPCSTR CCFXRequest::GetAttribute(LPCSTR lpszName)
Description
Retrieves the value of the passed attribute. Returns an empty string if the attribute does not exist.
(To test whether an attribute was passed to the tag, use
Returns
Returns the value of the attribute passed to the tag. If no attribute of that name was passed to the
tag, an empty string is returned.
Parameters
Parameter
lpszName
Example
The following example retrieves an attribute named
user:
LPCSTR lpszDestination = pRequest->GetAttribute("DESTINATION") ;
pRequest->Write( "The destination is: " ) ;
pRequest->Write( lpszDestination ) ;
760
Chapter 4: ColdFusion C++ CFX Reference
DEBUG
Description
Name of the attribute to retrieve (case insensitive)
attribute. Use this function to determine whether to
attribute is present, and if it is, it writes a brief
DEBUG
CCFXRequest::AttributeExists
DESTINATION
CCFXRequest::WriteDebug
and writes its value back to the
.
.)