BOOL CCFXRequest::AttributeExists(LPCSTR lpszName
)
Checks whether the parameter was passed to the tag. Returns True if the parameter is available; False, otherwise.
Parameter |
Description |
---|---|
lpszName |
Name of the parameter 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." ) ; }