Ccfxrequest::debug; Ccfxrequest::getattribute; Ccfxrequest::getattributelist - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

302

CCFXRequest::Debug

BOOL CCFXRequest::Debug(void)
Checks whether the tag contains the
determine whether or not you need to write debug information for this request. (See
the
CCFXRequest::WriteDebug
Returns
Example
The following example checks to see whether the
it writes a brief debug message:
if ( pRequest->Debug() )
{
}

CCFXRequest::GetAttribute

LPCSTR CCFXRequest::GetAttribute(LPCSTR lpszName )
Retrieves the value of the passed attribute. Returns an empty string if the attribute
does not exist. (Use
passed to the tag.)
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.
lpszName
Name of the attribute to retrieve (case insensitive).
Example
The following example retrieves an attribute named
back to the user:
LPCSTR lpszDestination = pRequest->GetAttribute("DESTINATION") ;
pRequest->Write( "The destination is: " ) ;
pRequest->Write( lpszDestination ) ;

CCFXRequest::GetAttributeList

CCFXStringSet* CCFXRequest::GetAttributeList(void)
Retrieves a list of all attribute names passed to the tag. To retrieve the value of an
individual attribute, you should use CCFXRequest::GetAttribute.
Returns an object of class
passed to the tag.
tag for details on writing debug information.)
if the tag contains the
TRUE
pRequest->WriteDebug( "Top secret debug info" ) ;
CCFXRequest::AttributeExists
CCFXStringSet Class
Developing Web Applications with ColdFusion
attribute. You should use this function to
DEBUG
attribute; otherwise, returns
DEBUG
attribute is present, and if it is,
DEBUG
to test whether an attribute was
DESTINATION
that contains a list of all attributes
.
FALSE
and writes its value

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 4.5

Table of Contents