Documentation
Back to website >

DatabaseName (Pascalscript)

Description

This function returns the name of the current database (clients).

Syntax

function DatabaseName(var Report:TppReport): string;

Arguments

The object Report must always be specified and is always called Report. It is the object of the current report. The database name of the active client is returned as the result.

Example

begin
  ShowMessage(DatabaseName(Report));
end;

Rules to understand the script can be found here.

The name of the database is output using the screen output function ShowMessage. In this example, the client is called TestMlient. All databases used by EULANDA® always have EULANDA_ as prefix.

ShowMessage shows for example: EULANDA_TestClient