COMPANYNAME Function (Database)
Gets the current company name.
Name := COMPANYNAME
Property Value/Return Value
Type: Text constant or code
The name of the company, or an empty string if no company has been selected.
Example
This example requires that you create the following variables and text constants.
Variable name | DataType | Length |
---|---|---|
CompName |
Text |
1024 |
Name | ConstValue |
---|---|
Text000 |
The name is %1. |
CompName := COMPANYNAME;
MESSAGE(Text000, CompName);