FZ_PanDAForm.LoadUnitData
Loads processing unit data
Public Shared Function LoadUnitData( _
ByVal sceneNo As Integer, _
ByVal unitNo As Integer, _
ByVal unitCount As Integer, _
ByVal mode As LoadUnitDataMode, _
ByVal fileName As String _
) As Integer
Public Enum LoadUnitDataMode
OverWrite
Insert
End Enum
Parameters
sceneNo
|
Scene number
|
Input
|
unitNo
|
Unit number
|
Input
|
unitCount
|
Unit count
|
Input
|
mode
|
Loading mode
|
Input
|
fileName
|
File name
|
Input
|
Return Value
Returns 0 when the processing unit data is successfully loaded.
Otherwise returns a non-zero value.
Description
Loads data which is saved by SaveUnitData(Saves processing unit data).
・ Specifies scene number where is saved processing data in argument sceneNo. When specified -1, stands for current scene.
・ Specifies OverWrite in argument mode stands for over write mode, Insert stands for insert mode.
・ Loading the number of the processing unit specified by argument unitCount begin with the processing unit specified by argument unitNo.
・ The number of processing unit saved in specified file is lower than the number specified by argument unitCount, loading the unit saved in the specified file.
・ Specified -1 in argument mode is stands for loading the unit saved in the specified file.
Example
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Loads processing unit data
LoadUnitData(0, 0, 2, OverWrite, )
End Sub