Database.CompanyName() Method

Version: Available or changed with runtime version 1.0.

Gets the current company name.

Syntax

Name :=   Database.CompanyName()

Note

This method can be invoked using property access syntax.

Note

This method can be invoked without specifying the data type name.

Return Value

Name
 Type: Text
The name of the company, or an empty string if no company has been selected.

Example

var
    CompName: Text[1024];
    Text000: Label 'The name is %1.';
begin
    CompName := CompanyName();  
    Message(Text000, CompName);  
end;

Database Data Type
Get Started with AL
Developing Extensions