RaiseErrorEx 

Raises an error in the application.

Syntax

Sub RaiseError(hrError As Long, bstrLookupID As String, vbCriticalErr As Boolean, varsaParameterValues)

Parameters

hrError

Required [in]; Specifies the error code of the error.

bstrLookupID

Required [in]; Specifies the LookupID of the error.

vbCriticalErr

Required [in]; TRUE, if a Critical Error is raised, otherwise FALSE

varsaParameterValues

Required [in]; Specifies an array of string values that are substituted for the error parameters.

Remarks

This method is similar to the RaiseError method except that it used for error messages that have error parameters. The string values in the array (zero-based) passed as a parameter are substituted for the error parameters in the message.

Error description: "The business object %1% does not have the attribute named
%2%."

Zero-based Array: "BOOPPORTUNITY", "City"

Parsed description: "The business object BOOPPORTUNITY does not have the
attribute named City."

If an element is missing in the array the error parameter will remain in the description and
not be substituted