Forum Discussion

Paki's avatar
Paki
Occasional Contributor
14 years ago

Error in updating the DBTables element:

Hi guys,



This is the error: Wrong number of arguments or invalid property assignment: 'DBTables.Table1.Values'

 

The line throwing this error is:  DBTables.Table1.Values(rowID,colID)="A"

even when I ensured that both the rowID and colID are correct



Your help is highly appreciated

Thanks in advance

3 Replies


  • Hi,





    We failed to reproduce the problem with TestComplete 8. Which version of TestComplete are you using? The DBTable.Values and Table.Values properties became read-write only in TestComplete 7.51.





    If you are using an earlier version (in which the DBTable.Values property is read-only) you can only update the entire table as it is described in the 'Updating Values With the Compare Method' section of the 'Modifying DBTable Elements' help topic.
  • Paki's avatar
    Paki
    Occasional Contributor
    Hi David,



    I am using Test Complete v 7.52

    Does the readonly property of DBTables.Value apply here ??
  • Hi,


    No, this property is read-write in TestComplete 7.52. We failed to reproduce the problem in this version either. Try to reproduce the problem with TestComplete 8 . Does the problem occur?


    If it does, please zip your entire project suite folder along with the log of the failed test execution and send us the archive. Make sure that messages in your log correspond to the latest version of your tests.