nca_flex_get_column_name
| Flexfield Window Functions |
Gets the name of a column in a Flexfield window.
int nca_flex_get_column_name( LPCSTR window_name, int column, LPCSTR column_name );
| window_name | The logical name of the Flexfield window. |
| column | The column number whose name is required. |
| column_name | The name of the column is written here. |
The nca_flex_get_column_name function gets the name of a column in a Flexfield window. The function writes the name of the column into the output parameter column_name.
Return Values
Parameterization
All input string arguments (char type) can be parameterized using standard parameterization.
Example
The aim of the following example is to set data in the first cell of the window. The function to do this, flex_set_cell_data, requires the name of the row and column. The nca_flex_get_column_name function assigns the column name of the first field to the output parameter column_name. This name is then passed to flex_set_cell_data.
char row_name[64], column_name[64];
nca_set_window("Find Accounts");nca_flex_get_row_name("Find Accounts", 1, row_name);nca_flex_get_column_name("Find Accounts", 1, column_name);/* Put "00" in the first cell of the window */
nca_flex_set_cell_data("Find Accounts", row_name, column_name,"00");nca_flex_press_ok("Find Accounts");

