GetBufferData [Int32 (two-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#: ref int ]  [ VB.NET: Integer ]  

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

 

Data [ C#: int[,] ]  [ VB.NET: Integer(,) ]  

Specifies the storage destination of the acquired data as a two-dimensional array of System.Int32 type.

Allocate element 1 for the number of data sets you want to acquire, and allocate element 2 for each data set.

 

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 two-dimensional array from the buffer.

 

Example

 

Get 10 sets of data, while 1 set has 3 data. 

C#

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

DataSetNum = 10;

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

 

VB.NET

Dim Ret As Integer
Dim DataSetNum As Integer
Dim Data(10,3) As Integer

DataSetNum = 10

Ret = dncDataSet1.GetBufferData(DataSetNum, Data)