Overview

System Information

The ApplicationInfo object provides details about the execution environment and operating system.

ApplicationInfo Properties

Property Type Description
EnvironmentVariable[name] String Read or set OS environment variables.
ExeName String Path to the current host executable.
UserName String Name of the logged-in user.
ExeLinkTimeStamp TDateTime Binary compilation timestamp.

Example

if ApplicationInfo.UserName <> '' then PrintLn('User name found');
if ApplicationInfo.ExeName <> '' then PrintLn('Host name found');

var path := ApplicationInfo.EnvironmentVariable['PATH'];
if path <> '' then PrintLn('Path found');
Result
User name found
Host name found
Path found
On this page