GetBufferData [Int32(one-dimensional array)]


Function

 

Gets the integer value (System.Int32) data of a one-dimensional array from the buffer.

 

Format

 

Ret = dncDataSet1.GetBufferData(DataSetNum, Data)

 

Parameters

 

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

Specifies the number of datasets to set.
After execution, the number of datasets actually acquired is stored.

 

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

Specifies the storage destination of the acquired data as a one-dimensional array of System.Int32 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

 

Gets the integer value (System.Int32) data of a one-dimensional array from the buffer. 

 

Example

 

Gets 10 data. It is assumed that the data set unit is 1.

C#

int     Ret;
int     DataSetNum;
int[]  Data = new int[10];

DataSetNum = 10;

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

 

VB.NET

Dim Ret As Integer
Dim DataSetNum As Integer
Dim Data(9) As Integer

DataSetNum = 10

Ret = dncDataSet1.GetBufferData(DataSetNum, Data)