Sets the specified value of an identification property for an object.

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.

DbTable("DbTable").Check CheckPoint("DbTable")

IsExists = DbTable("DbTable").Exist (0)

If IsExists Then

DbTable("DbTable").SetTOProperty "Source", "SELECT * FROM ADDRESS"

Dim NewSQL

NewSQL = DbTable("DbTable").GetTOProperty ("Source")

MsgBox NewSQL

End If 

Additional Reading


If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by Email and have new UFT articles sent directly to your inbox.

Subscribe to get free updates on UFT!

LearnQTP is the most popular site on UFT (formerly QTP).

Enter your first name and email address below to instantly subscribe and download an eBook on Optimizing UFT Scripts. In future, we will make sure you get new tips & tricks on UFT delivered direct to your email box.

Please check your email and confirm free subscription!