nca_response_get_cell_data
| Response Object Functions |
Gets data from a cell in a response box.
int nca_response_get_cell_data( const char *name,const char *rowname, char *data );
| name | The name of the response object. |
| rowname | The name of the row (response field). |
| data | Pointer to a user-allocated buffer to store the contents of the field. |
The nca_response_get_cell_data function retrieves data from a cell in a response box. You specify the name of the response object and the name of the field.
nca_response_get_cell_data returns ORANCA_MSG_E_ITEM_NOT_FOUND if field named rowname does not exist.
Return Values
Parameterization
All input string arguments (char type) can be parameterized using standard parameterization.
Example
In the following example, the nca_response_get_cell_datafunctionretrieves the value inserted by nca_response_set_data.
char buf[64]; nca_response_set_data( "Examine Field and Variable Values", "Block==>*SELECT*||Field==>'check'||Value==>"); /* get the "Value" field after the nca_response_set_data call */
nca_response_get_cell_data( "Examine Field and Variable Values", "Value", buf);
nca_response_press_ok( "Examine Field and Variable Values");

