Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfenvsub()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfEnvSub()
Sets a DOS environment variable
------------------------------------------------------------------------------
Syntax:

     dfEnvSub( <cStr> ) --> cSubstituted

Parameters:

     <cStr>     Input string

Returns:

     <cSubstituted> Replaced string

Description:

     Replaces the contents of an environment variable, specified between a
     pair of '%', with the specified string

Example:

     //
     // Suppose the following variable has been set:
     //
     // SET TEMP=C:\DBSEE4\BIN
     //
     
     dfEnvSub( "MyEnv%dbsee.hlp" )
             // MyEnvdbsee.hlp
     dfEnvSub( "%temp%dbsee.hlp" )
             // C:\DBSEE4\BIN\dbsee.hlp
     dfEnvSub( "%stemp%dbsee.hlp" )
             // dbsee.hlp

See also:

     dfPathChk()

See Also: dfPathChk()

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