Sets the specified value of an identification property for an object.
QTP-SetTOProperty

Syntax –

DbTable(description).SetTOProperty Property, Value 

Example –

The following example uses the SetTOProperty method to modify the database table’s Source property, and then retrieves and displays the new value.

  1. DbTable("DbTable").Check CheckPoint("DbTable")
  2.  
  3. IsExists = DbTable("DbTable").Exist (0)
  4.  
  5. If IsExists Then
  6.  
  7. DbTable("DbTable").SetTOProperty "Source", "SELECT * FROM ADDRESS"
  8.  
  9. Dim NewSQL
  10.  
  11. NewSQL = DbTable("DbTable").GetTOProperty ("Source")
  12.  
  13. MsgBox NewSQL
  14.  
  15. End If

Additional Reading

SetTOProperty