IEstimate.RunQdvRequest (String, String, Boolean, Boolean, ref MacroExecutionError, Boolean) Method
Sub RunQdvRequest( _
ByVal requestName As String, _
ByVal wbsScope As String, _
ByVal includeDbOfEstimate As Boolean, _
ByVal includeOverheadMinute As Boolean, _
ByRef executionError As MacroExecutionError, _
ByVal showAnomalies As Boolean _
)
This language is not supported or no code example is available.
Parameters
- requestName
- string
The request name (not a request ID).
- wbsScope
- string
The task hexID significant part. An empty string means no task in WBS. For example, '001' means entire WBS.
- includeDbOfEstimate
- bool
Indicates whether to include also database of estimate into request execution scope.
- includeOverheadMinute
- bool
Indicates whether to include also overhead minute into request execution scope.
- executionError
- MacroExecutionError
Returns the errors produced by the request execution.
- showAnomalies
- bool
Indicates whether a window with the anomalies list will be automatically displayed, if any anomalies were added by the request with an "Append_Anomaly_List" verb. The list is shown after the request has finished.
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.