| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXRequest class > CCFXRequest::GetAttribute |
|
|
|
|
||
LPCSTR CCFXRequest::GetAttribute(LPCSTR lpszName)
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.)
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.
Parameter |
Description |
|---|---|
lpszName |
Name of the attribute to retrieve (case insensitive) |
The following example retrieves an attribute named DESTINATION and writes its value back to the user:
LPCSTR lpszDestination = pRequest->GetAttribute("DESTINATION") ;
pRequest->Write( "The destination is: " ) ;
pRequest->Write( lpszDestination ) ;
|
|
||
| Contents > CFML Reference > ColdFusion C++ CFX Reference > CCFXRequest class > CCFXRequest::GetAttribute |
|
|
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.