FZ_PanDAForm.InsertUnit
Inserts a processing unit into a flow
Public Shared Function InsertUnit( _
ByVal unitNo As Integer, _
ByVal itemIdent As String _
) As Integer
Parameters
unitNo
|
Unit number to insert a processing item
|
Input
|
itemIdent
|
Processing item identification name to be registered
|
Input
|
Return Value
Returns 0 when the processing unit is successfully registered.
Otherwise returns a non-zero value.
Description
Inserts the specified processing item as unit on the specified unit no.
When a processing unit is already registered on the specified processing unit no,
When a processing item is already registered with the specified processing unit, numbers of the registered processing unit after the specified unit are incremented by one and the specified processing item is registered with the specified unit.
The processing target scene is a current scene.
* When you execute this method, basically disable a measurement trigger (execute
MeasureStop ) before the execution.
After inserted a processing unit, enable the measurement trigger (execute
MeasureStart ).
Example
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
' Disables a measurement trigger
MeasureStop()
' Inserts a search processing item with the unit number 1
InsertUnit(1, "Search")
' Enables a measurement trigger
MeasureStart()
End Sub