Name Property

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

Description

Use the Name property to obtain the connection setting’s name for the DBTable project element that corresponds to the DBTableObj object. This is the same string that identifies the project element in the Project Explorer panel.

Declaration

DBTableObj.Name

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

String that specifies the name of the connection settings.

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
Select Database Table Wizard - Select DBTable Element Page
Description Property

Highlight search results