Andrew McCall a écrit:
Is it possible to access environment variables within gpc code, for example $USER ?
There is a GetEnv function in the module gpc.pas for that purpose. e.g.
username:=GetEnv('USER');
also
username:=CStringGetEnv('USER');
See gpc.pas in the units directory for the difference.
Maurice