Cell (by Row/Column Number) 

Purpose

Function for getting or setting individual cell values by row and column numbers.

Syntax

CRfcData& Cell(int nRow, int nCol);

Parameters

Return Value

Reference to a CRfcData object containing the data value and type information.

Exceptions

Throws const char* if no field information can be found for the specified column.

Throws const char* if no such row can be found.

Description

Use this function to assign and retrieve values from any cell through the support of CRfcData. User should not be concerned with or make any direct use of the intermediate CRfcData object.

To be able to access a cell value, information about the corresponding column or field should have been already supplied to the parameter object using either of the CRfcComplexParam::AddFieldInfo functions.

Note that cell by cell operations on the same row should be done through the functions SetCurrentRow and Field to achieve better performance.

Assuming ATableParam is a table parameter with column number 0 of type RFC_INT:

ATableParam.Cell(0,0) = 5; // Sets table cell at row 0, column

// 0 to value 5.

int anInt = ATableParam.Cell(0,0); // Retrieves table cell at row 0,

// column 0 and assigns it to anInt.

 

 

Related Information

AddFieldInfo (Multiple Fields)

AddFieldInfo (Single Field)

SetCurrentRow

operator()

 

Field (Constant Table, by Index/Column Name

Field (Constant Table, by Index/Column Number)

Field (by Row/Column/Field Name)

Field (by Row/Column Number)

 

Cell (by Row/Column Name)

Cell (Constant Table, by Row/Column Name)

Cell (Constant Table, by Row/Column Number)