DLLNickname Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The IDefineDLL.DLLNickname property returns the DLL type. This is the same value that you have passed to the DLL.DefineDLL or IDLLAccessProcess.DefineDLL method.

Declaration

IDefineDLLObj.DLLNickname

Read-Only Property String
IDefineDLLObj An expression, variable or parameter that specifies a reference to an IDefineDLL object

Applies To

The property is applied to the following object:

Property Value

A string holding the DLL type.

Example

The code below defines a new DLL and then posts the type of this DLL to the test log.

JavaScript, JScript

function DefineDLLExample()
{
  var DefEnv = DLL.DefineEnvironment();
  // Defines the DLL type
  var IDefDLL = DefEnv.DefineDLL("user32");
  // ...
  // Gets the DLL type and posts it to the test log
  var DLLType = IDefDLL.DLLNickname;
  Log.Message(DLLType);
}

// The routine produces the following output:
// user32

Python

def DefineDLLExample():
  DefEnv = DLL.DefineEnvironment()
  # Defines the DLL type
  IDefDLL = DefEnv.DefineDLL("user32")
  # ...
  # Gets the DLL type and posts it to the test log
  DLLType = IDefDLL.DLLNickname
  Log.Message(DLLType)

# The routine produces the following output:
# user32

VBScript

Sub DefineDLLExample()

  Set DefEnv = DLL.DefineEnvironment()
  ' Defines the DLL type
  Set IDefDLL = DefEnv.DefineDLL("user32")
  ' ...
  ' Gets the DLL type and posts it to the test log
  DLLType = IDefDLL.DLLNickname
  Log.Message(DLLType)
    
End Sub

' The routine produces the following output:
' user32

DelphiScript

function DefineDLLExample;
var DefEnv, IDefDLL, DLLType;
begin

  DefEnv := DLL.DefineEnvironment();
  // Defines the DLL type
  IDefDLL := DefEnv.DefineDLL('user32');
  // ...
  // Gets the DLL type and posts it to the test log
  DLLType := IDefDLL.DLLNickname;
  Log.Message(DLLType);

end;

// The routine produces the following output:
// user32

C++Script, C#Script

function DefineDLLExample()
{
  var DefEnv = DLL["DefineEnvironment"]();
  // Defines the DLL type
  var IDefDLL = DefEnv["DefineDLL"]("user32");
  // ...
  // Gets the DLL type and posts it to the test log
  var DLLType = IDefDLL["DLLNickname"];
  Log["Message"](DLLType);
}

// The routine produces the following output:
// user32

See Also

DefineDLL Method
DefineDLL Method

Highlight search results