Ccfxrequest::getsetting; Ccfxrequest::rethrowexception - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

304
(created using the CFQUERY tag or another custom tag). The
optional and should only be used by tags that need to process an existing data set.
Returns an object of the
the tag. If no query was passed to the tag,
freeing the memory allocated for the returned query (it will be freed automatically by
ColdFusion after the request is completed).
Example
The following example retrieves the query that was passed to the tag. If no query was
passed, an exception is thrown:
CCFXQuery* pQuery = pRequest->GetQuery() ;
if ( pQuery == NULL )
{
}

CCFXRequest::GetSetting

LPCSTR CCFXRequest::GetSetting(LPCSTR lpszSettingName )
Retrieves the value of a global custom tag setting. Custom tag settings are stored within
the CustomTags section of the ColdFusion Registry key.
Returns the value of the custom tag setting. If no setting of that name exists, an empty
string is returned.
lpszSettingName
Name of the setting to retrieve (case insensitive).
Example
The following example retrieves the value of a setting named 'VerifyAddress' and uses
the returned value to determine what actions to take next:
LPCSTR lpszVerify = pRequest->GetSetting("VerifyAddress") ;
BOOL bVerify = atoi(lpszVerify) ;
if ( bVerify == TRUE )
{
}

CCFXRequest::ReThrowException

void CCFXRequest::ReThrowException(CCFXException* e )
Re-throws an exception that has been caught within an extension procedure. This
function is used to avoid having C++ exceptions thrown by DLL extension code
propagate back into ColdFusion. You should catch ALL C++ exceptions that occur in
CCFXQuery Class
pRequest->ThrowException(
"Missing QUERY parameter",
"You must pass a QUERY parameter in "
"order for this tag to work correctly." ) ;
// Do address verification...
Developing Web Applications with ColdFusion
QUERY
that represents the query that was passed to
is returned. You are not responsible for
NULL
attribute is

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents