InsertTableRows
int InsertTableRows (int panelHandle, int controlID, int rowIndex, int numberOfRows, int cellType);
Purpose
Inserts new rows into a table control at the specified one-based index.
The indexes of existing rows at and beyond the specified index are increased by the number of rows inserted.
This function creates a new cell for each column in the table.
Example Code
Refer to the SetTableColumnAttribute function reference for an example of how to use this and other table functions to insert cells into a table control and modify the attributes of new and existing cells.
Supported Controls
You can use InsertTableRows with table controls.
Parameters
Input | ||||||||||||||||
Name | Type | Description | ||||||||||||||
panelHandle | int | Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel. | ||||||||||||||
controlID | int | The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by functions such as NewCtrl and DuplicateCtrl. | ||||||||||||||
rowIndex | int | The one-based index into the table where the function inserts the first new
row. Pass –1 to insert the first new rows at the end of the table. |
||||||||||||||
numberOfRows | int | The number of new rows to insert. | ||||||||||||||
cellType | int | The cell type of the cells that might be created as a result of creating the new rows. The following table lists the possible cell types.
|
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later