LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to programtically obtain each column in table of a panel

hi everyone:
i want to  programtically obtain each column in table of a panel, and i would like to use a loop statement to change each column label text name automatically?
0 Kudos
Message 1 of 2
(2,856 Views)

This can be accomplished with a loop that iterates from 1 to the number of columns in the table and uses SetTableColumnAttribute (panelHandle, tableID, colIdx, ATTR_LABEL_TEXT, "Lable"); to set the label text. The label will be displayed only for each column on which you have choosed at design time to display a lable text instead of the default index value. This option can be set even at runtime passing the appropriate attribute to SetTableColumnAttribute (ATTR_USE_LABEL_TEXT).

GetNumTableColumns function retrieves the number of existing columns in a table.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(2,854 Views)