Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_getenv( [ <cenvar> ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_GETENV( [ <cEnvar> ] )


Parameters

<cEnvar>
Name of an environment variable (upppercase).


Returns

N_GETENV() with no parameters returns the entire environment buffer as 
a string. Environment strings are separated by the null character 
CHR(0).

N_GETENV(<cEnvar>) returns the value of the environment variable, 
similarly to the Clipper function GETENV().


Example

// Get the current path, modify it...
save_path = N_GETENV('PATH')
N_MODENV('PATH', save_path + ';F:APPL\USER\DATA')
.
.
.
// ...then restore it.
N_MODENV('PATH', save_path)



See Also: N_ENVLEN() N_ENVSIZ() N_MODENV()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson