Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How do I Programmatically Modify Button Labels Within a Table?

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have created a table that contains buttons as a part of my User Interface.   How can I dynamically alter the labels of the buttons contained within my table?

Solution:
This can be accomplished by using the GetTableCellVal and SetTableCellVal functions to retrieve the value of the buttons from within the cells of the table.  Because the cells are of type VAL_CELL_BUTTON, the GetTableCellVal will expect a string large enough to hold the button's label plus a NULL termination character.

An example program has been attached that demonstrates this process.

Related Links:

Attachments:
Buttons in Table ExampleButton in Table.zip




Report Date: 12/18/2007
Last Updated: 12/20/2007
Document ID: 4GHH9L6X

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit