ProcItemForm.GetUnitData

Gets an external reference data in the processing unit

Public Overloads Function GetUnitData( _
   ByVal dataNo As Integer, _
   ByVal data As Double _
) As Integer
 
Public Overloads Function GetUnitData( _
   ByVal dataIdent As String, _
   ByVal data As Double _
) As Integer
 
Public Overloads Function GetUnitData( _
   ByVal dataNo As Integer, _
   ByVal data As String _
) As Integer
 
Public Overloads Function GetUnitData( _
   ByVal dataIdent As String, _
   ByVal data As String _
) As Integer

Parameters
dataNo
External reference number to be gotten
Input
dataIdent
External reference identification string to be obtained(name of the file that is saved last under \_MEM)
Input
data
Data to be gotten
Output

Return Value
Returns 0 when the external reference data is successfully obtained.
Otherwise returns a non-zero value.

Description
Gets the specified external reference data in the processing unit.

Example
    Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim value0 As Double
        Dim value1 As Double
        Dim str0 As String
        Dim str1 As String

        ' Get the value of external reference number 0
        GetUnitData(0, value0)

        ' Get the value of shutter speed 0
        GetUnitData("shutterSpeed0", value1)

        ' Get the value of external reference number 100
        GetUnitData(100, str0)

        ' Get the value of he processing unit, expression 1
        GetUnitData("setupData1", str1)

    End Sub