Name Property

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

Use this property to obtain the name of the section that corresponds to the ProgObj object.

Declaration

ProgObj.Name

Read-Only Property String
ProgObj An expression, variable or parameter that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

Property Value

The string that specifies the section name.

Example

The following code snippet posts the name of the registry key to the test log.

JavaScript, JScript

function Test()
{
  var Key;
  Key = Storages.Registry("TestKey", HKEY_CURRENT_USER);
  Log.Message(Key.Name);
}

Python

def Test():

  Key = Storages.Registry("TestKey", HKEY_CURRENT_USER)
  Log.Message(Key.Name)

VBScript

Sub Test
  Dim Key
  Set Key = Storages.Registry("TestKey", HKEY_CURRENT_USER)
  Log.Message(Key.Name)
End Sub

DelphiScript

procedure Test();
var Key;
begin
  Key := Storages.Registry('TestKey', HKEY_CURRENT_USER);
  Log.Message(Key.Name);
end;

C++Script, C#Script

function Test()
{
  var Key;
  Key = Storages["Registry"]("TestKey", HKEY_CURRENT_USER);
  Log["Message"](Key["Name"]);
}

See Also

OptionCount Property
SectionCount Property

Highlight search results