04-13-2015 09:42 AM
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.
04-14-2015 02:07 AM
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