Skip to content
Delphi VCL understanding the use of environment variables
Pascal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SRC
media
LICENSE
README.md

README.md

Delphi using Environment Variables in your App

Environment Variables can help you extract data that require some in-depth coding to achieve the same result. So here is a simple way to replace lengthy legacy code or create some new code with

function GetEnvironmentVariable(const Name: string): string; found in the System.SysUtils library.

Check out Bayesean Blog https://bayeseanblog.com/blog/delphi-using-environment-variables-in-your-app/26

What it is?

The ‘GetEnvironmentVariable’ method is a way to retrieve the value of an environment variable passed as a string (name) for the current process using a standard list of Windows based variables that can be extracted.

Happy Coding

You can’t perform that action at this time.