ExpandEnvironmentStrings Method

Expands environment-variable strings to their defined values and returns the result string.

Syntax

   obj.ExpandEnvironmentStrings(Instring string)
   where obj is an OpScrUtil.Utility object 

Parameters

Instring Specifies the name of the environment variable to be expanded.

Return Type

Boolean

Example

To get expanded environment variable, enter:

   Set obj = CreateObject("OpScrUtil.Utility")
   bOK = obj.ExpandEnvironmentStrings()

This example shows how to expand environment variable strings to their defined values.