www.icetips.com  Icetips Utilities Documentation 9/6/2009    

Shell Class:  GetEnvVar

Previous  Top  Next  


Prototype: (String pEnvVar), String

 

pEnvVarThe Environment variable to retrieve.

 

ReturnsString with the value of the environment variable

 

Use this method to get the value of a single environment variable. 

 

Example:

ITS  ITShellClass

Loc:Path CString(10000)

Code

Loc:Path = ITS.GetEnvVar('PATH')

ITS.SearchReplace(';',';<13,10>',Loc:Path)

Message('PATH = ' & Loc:Path)

 

This results in a message like this one:

 

ShellClass - GetEnvVar

See also:

ExpandEnvString

SetEnvVar

http://msdn.microsoft.com/en-us/library/ms683188(VS.85).aspx

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getenvvar_shellclass.htm