Description Property

Applies to TestComplete 15.42, last modified on September 08, 2022

Description

The Description property returns the description of the DBTable project element to which the given DBTableObj object corresponds. This is the same description string that is displayed in the Description edit box of the DBTable Element editor and in the Description edit box on the first page of the Select Database Table wizard.

Declaration

DBTableObj.Description

Read-Only Property String
DBTableObj An expression, variable or parameter that specifies a reference to a DBTable object

Applies To

The property is applied to the following object:

Property Value

A string that contains the description of the appropriate DBTable project element.

Example

The following example logs the name and description of a DBTable project element named DBTable1.

JavaScript, JScript

function Test()
{
  var dbtbl = DBTables.DBTable1;

  Log.Message("Name: " + dbtbl.Name + "; description: " + dbtbl.Description);
}

Python

def Test():
  dbtbl = DBTables.DBTable1
  Log.Message("Name: " + dbtbl.Name + "; description: " + dbtbl.Description)

VBScript

Sub Test
  Set dbtbl = DBTables.DBTable1

  Call Log.Message("Name: " & dbtbl.Name & "; description: " & dbtbl.Description)
End Sub

DelphiScript

procedure Test;
var dbtbl;
begin
  dbtbl := DBTables.DBDBTable1;

  Log.Message('Name: ' + dbtbl.Name + '; description: ' + dbtbl.Description);
end;

C++Script, C#Script

function Test()
{
  var dbtbl = DBTables["DBTable1"];

  Log["Message"]("Name: " + dbtbl["Name"] + "; description: " + dbtbl["Description"]);
}

See Also

About Database Checkpoints
About DBTable Element Editor
Select Database Table Wizard - Select DBTable Element Page
Name Property

Highlight search results