IProcessAnalyst.BlockUpdates [Method]
- Last UpdatedJul 18, 2023
- 1 minute read
Blocks certain aspects of the Process Analyst's redrawing and data updating.
Defined As
-
[VBA] BlockUpdates()
-
[Cicode] BlockUpdates()
-
[C++] HRESULT BlockUpdates()
Remarks
-
This method blocks three redraw systems: redraw for the chart, the Object View, and the toolbars.
-
Data updates are also blocked.
-
The current data requests are cancelled.
-
The Process Analyst has a built-in counter to store how many times the block and unblock have been called, so that only the final UnBlockUpdates call actually unblocks the above mentioned data updates and redraw systems.
Execution Result
If the function succeeds, the return value will be Success. If the function does not succeed, the return value will be GeneralFailure.
Calling Syntax
This example assumes there is a valid Process Analyst object to be passed into the example methods.
[VBA]
Sub Example(ProcessAnalyst As Object)
ProcessAnalyst.BlockUpdates()
End Sub
[Cicode]
FUNCTION Example(OBJECT hProcessAnalyst)
_ObjectCallMethod(hProcessAnalyst, "BlockUpdates");
END