SetBufferData [Byte (one-dimensional array)]


Function

 

Adds one-dimensional array integer value (System.Byte) data to the buffer.

 

Format

 

Ret = dncDataSet1.SetBufferData(DataSetNum, Data)

 

Parameters

 

DataSetNum [ C#: ref int ]  [ VB.NET: Integer ]  
Specifies the number of datasets to set.

 

Data [ C#: byte[] ]  [ VB.NET: Byte() ]  

Specifies the data to be added to the buffer as a one-dimensional array of System.Byte type.

Please prepare the array to be prepared in multiples of the data set unit. 

 

Return value

 

Ret [ C#: int ] [ VB.NET: Integer ]

 

Value

Description

0

Normality completion

510001

The input parameter is invalid. Check the parameter contents.

Other errors (see: Error code details)

 

Remarks

 

Adds one-dimensional array integer value (System.Byte) data to the buffer.

 

Example

 

Adds the data "0, 100, 200" to the buffer. It is assumed that the data set unit is 1.

C#

int     Ret;
int     DataSetNum;
byte[]  Data = new byte[3];

DataSetNum = 3;
Data[0]    = 0;
Data[1]    = 100;
Data[2]    = 200;

Ret = dncDataSet1.SetBufferData(ref DataSetNum, Data);

 

VB.NET

Dim Ret As Integer
Dim DataSetNum As Integer
Dim Data(2) As Byte

DataSetNum = 3
Data(0)    = 0
Data(1)    = 100
Data(2)    = 200

Ret = dncDataSet1.SetBufferData(DataSetNum, Data)