ISetDatabase.RunQdvMacro Method
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.
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.