![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Скачать руководство пользователя страница 328](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-developing-web/coldfusion-4-5-developing-web_develop-manual_3286369328.webp)
302
Developing Web Applications with ColdFusion
CCFXRequest::Debug
BOOL CCFXRequest::Debug(void)
Checks whether the tag contains the
DEBUG
attribute. You should use this function to
determine whether or not you need to write debug information for this request. (See
the
CCFXRequest::WriteDebug
tag for details on writing debug information.)
Returns
TRUE
if the tag contains the
DEBUG
attribute; otherwise, returns
FALSE
.
Example
The following example checks to see whether the
DEBUG
attribute is present, and if it is,
it writes a brief debug message:
if ( pRequest->Debug() )
{
pRequest->WriteDebug( "Top secret debug info" ) ;
}
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
CCFXRequest::AttributeExists
to test whether an attribute was
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
DESTINATION
and writes its value
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
CCFXStringSet Class
that contains a list of all attributes
passed to the tag.
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...