LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GetTableCellVal for Combo Box is returning float???

I'm using a Combo Box with a few strings as options.  When I use GetTableCellVal(panelHandle,TABLE_CONSTANT, Point that changed, &value) where value is declared as "char value[100]" I get the following error:

 

Invalid argument type: found 'pointer to array 100 of char', expected 'pointer to float'.

 

The documentation says the the GetTabelCellVal returns a string for Combo Boxes, not a float as with Numeric cells.  What am I missing here?  Thanks!

 

Note: The parameter "Point that changed" is pseudo code.  I form the Point type correctly.

 

 

Line from documentation:  If the cell type is VAL_CELL_STRING, VAL_CELL_RING, VAL_CELL_COMBO_BOX, or VAL_CELL_BUTTON, the function expects you to pass a buffer large enough to hold the corresponding string, plus the terminating NUL. Use GetTableCellValLength to obtain the length of the string.

0 Kudos
Message 1 of 2
(4,173 Views)

Hello Brandon,

 

For the last parameter you should pass value, not &value.

It's weird you get this message, for the same code I get the message:

Invalid argument type: found 'pointer to array 100 of char', expected 'pointer to char'. What LabWindows/CVI version are you using?

 

Constantin

0 Kudos
Message 2 of 2
(4,157 Views)