ISetDatabase.RunQdvMacro Method

Runs a macro in the set DB.
Sub RunQdvMacro( _ 
ByVal macroName As String, _ 
ByRef executionError As MacroExecutionError, _ 
ByVal context As ICallingContext
)
This language is not supported or no code example is available.
void RunQdvMacro( 
string macroName
ref MacroExecutionError executionError
ICallingContext context 
)
This language is not supported or no code example is available.

Parameters

macroName
string

Name of the macro to execute, not its ID.

executionError
MacroExecutionError

An error structure used to return the error produced by the macro execution.

context
ICallingContext

The context passed to the macro.

Remarks
 

The execution stops on the first error. This error is then returned in the executionError argument. Since the MacroExecutionError is a structure, you cannot test it for null reference (Nothing in Visual Basic), when the method finishes. Instead, test its MacroExecutionError.ErrorMessage property. When you call the method, set the MacroExecutionError.ErrorMessage property to null reference (Nothing in Visual Basic) and when the method finishes, test whether the value is null reference (Nothing in Visual Basic) or an empty string.

Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition