LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Default cell values for column not properly saved in uir file in labwindows 2009 (9.1.0 427)?

Solved!
Go to solution

I've run into a strange problem with the table control.  Basically, even though I set default cell values for a particular column as numeric, when I try to add items to the list it tries to add them as strings, and returns an error message that it is expecting *char instead of int.  Furthermore, when I open the uir file that contains the table in question in 2010, it appears as if the default cell values for that column are still set as strings, even though in 2009 when I open the uir file it shows as numbers.  I tried converting the uir to C code, and sure enough the C code indicated that the column still is a string type.

 

I've gone ahead and made a small project to show the issue.  If you open this project in labwindows 2009 and click on the table in the table_bug.uir, and edit default cell values for column 1, you will see that the cell settings have type as numeric and data type as int.  When you run the project, however, it will fail with an error message saying that it is looking for a *char.  When this same project is loaded into labwindows 2010, clicking on the table in table_bug.uir and edit default cell values (column 1) shows the type as string.  When I change this to numeric (and change numeric attribute to int), this runs fine in 2010.  I tried simply changing the uir in 2010, and then using it in 2009, but 2009 complains that the uir is from a newer version (understandable).  If there is any workaround that would let me continue to use 2009 for the time that would be great.

 

Any help would be greatly appreciated.

 

thanks,

 

Alex Corwin

0 Kudos
Message 1 of 3
(3,388 Views)

I opened the UIR in 2009 (but I have 2009 SP1) and it still showed that the default value for the first column was a string. I didn't have any problems changing it to a numeric int, and then building and running the project without error.

 

Here are a few things you can try:

 

1) Change the default value to a string. OK out of the dialog, re-enter the dialog, and change it back to Numeric int. Resave and see if the problem has gone away.

 

2) You said you get a ".UIR is from a newer version" error when opening the 2010 UIR in 2009. Does the UIR still open if you click okay? Often times this will work just fine. Assuming you don't have any problems with this, make a minor change to the UIR in 2009, such as moving the table to the left, and then back to the right and then re-save. See if your program works now.

Kevin B.
Message 2 of 3
(3,386 Views)
Solution
Accepted by topic author adcor

Hi Kevin,

 

Thanks for the reply.  I looked at the bug fix list for 2009 sp1 and sure enough:

 

#226445 Row and column inheritance of table controls does not work in the User Interface Editor.  

I went ahead and upgrade to 2009 sp1 and sure enough it works now.

 

Thanks,

 

Alex Corwin

0 Kudos
Message 3 of 3
(3,383 Views)