Ccfxrequest::setvariable; Ccfxrequest::throwexception - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

CCFXRequest::SetVariable

Syntax
void CCFXRequest::SetVariable(LPCSTR lpszName, LPCSTR lpszValue)
Description
Sets a variable in the calling template. If the variable name already exists in the template, its value
is replaced. If it does not exist, a variable is created. The values of variables created using
can be accessed in the same manner as other template variables (for example,
SetVariable
#MessageSent#
Parameters
Parameter
lpszName
lpszValue
Example
The following example sets the value of a variable named
an operation performed by the custom tag:
BOOL bMessageSent;
...attempt to send the message...
if ( bMessageSent == TRUE )
{
pRequest->SetVariable( "MessageSent", "Yes" ) ;
}
else
{
pRequest->SetVariable( "MessageSent", "No" ) ;
}

CCFXRequest::ThrowException

Syntax
void CCFXRequest::ThrowException(LPCSTR lpszError,
LPCSTR lpszDiagnostics)
Description
Throws an exception and ends processing of a request. Call this function when you encounter an
error that does not allow you to continue processing the request. This function is almost always
combined with the
extension code.
Parameters
Parameter
lpszError
lpszDiagnostics
764
Chapter 4: ColdFusion C++ CFX Reference
).
Description
Name of variable
Value of variable
CCFXRequest::ReThrowException
Description
Short identifier for error
Error diagnostic information
based on the success of
'MessageSent'
to protect against resource leaks in

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents