User Guide
CCFXRequest class 1065
CCFXRequest::CreateStringSet
Syntax
CCFXStringSet* CCFXRequest::CreateStringSet(void)
Description
Allocates and returns an instance. Always use this function to create string sets, as opposed to
directly using the
new operator.
Returns
Returns an object of CCFXStringSet class. The memory allocated for the returned string set is
freed automatically by ColdFusion after the request is completed
Example
The following example creates a string set and adds three strings to it:
CCFXStringSet* pColors = pRequest->CreateStringSet() ;
pColors->AddString( "Red" ) ;
pColors->AddString( "Green" ) ;
pColors->AddString( "Blue" ) ;
CCFXRequest::Debug
Syntax
BOOL CCFXRequest::Debug(void)
Description
Checks whether the tag contains the Debug attribute. Use this function to determine whether to
write debug information for a request. For more information, see
CCFXRequest::WriteDebug.
Returns
Returns True if the tag contains the Debug attribute; False, otherwise.
Example
The following example checks whether the Debug attribute is present, and if it is, it writes a brief
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
CCFXRequest::AttributeExists.)