| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXRequest class > CCFXRequest::AttributeExists |
|
|
|
|
||
BOOL CCFXRequest::AttributeExists(LPCSTR lpszName)
Checks whether the attribute was passed to the tag. Returns True if the attribute is available; False, otherwise.
Parameter |
Description |
|---|---|
lpszName |
Name of the attribute to check (case insensitive) |
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." ) ;
}
|
|
||
| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXRequest class > CCFXRequest::AttributeExists |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.