User Guide
CCFXRequest class 759
CCFXRequest::AttributeExists
Syntax
BOOL CCFXRequest::AttributeExists(LPCSTR lpszName)
Description
Checks whether the attribute was passed to the tag. Returns True if the attribute is available; False,
otherwise.
Parameters
Example
The following example checks whether the user passed an attribute named DESTINATION to
the tag, and throws an exception if the attribute was not passed:
if ( pRequest->AttributeExists("DESTINATION")==FALSE )
{
pRequest->ThrowException(
"Missing DESTINATION parameter",
"You must pass a DESTINATION parameter in "
"order for this tag to work correctly." ) ;
}
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" ) ;
Parameter Description
lpszName Name of the attribute to check (case insensitive)