14 Nov
2002
14 Nov
'02
4:57 p.m.
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 -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 63 54 95 mailto:Maurice.Lombardi@ujf-grenoble.fr