Forum Discussion

cshukusky's avatar
cshukusky
Contributor
12 years ago

TestComplete 10 AddColumn method for table type project variables

In multiple tests I use project variables of type table.  In the scripts (vbscript) I add columns to the table with the addcolumn method. Ex:



Project.Variables.ExampleVar.AddColumn



With TestComplete 9.31 and earlier this would just add a column new column to the table.  With TestComplete 10, this is giving me a runtime error saying:



An attempt to create a column with the name "0", which one of the existing columns already has.



Now indeed I do have a column with name 0, but why isn't it just adding a new column like it did in TestComplete 9? Did the functionality of this method change on purpose? Do I now have to specify a different name each time I add a colum?

3 Replies


  • Hi Chris,


     


    I see that the TestComplete Support team is investigating this behavior with the R&D team. Let's wait for their results. Please share them with us.


     

  • The issue had to do with calling the AddColumn method more than once.  I have been informed it will be fixed in the next version of TestComplete (10.1 I suppose).