wwAPI::WinApi_GetEnvironmentVariable

Returns a Windows Environment Variable. Unlike GETENV() it can return strings larger than 255 characters (specifically the Windows path!)

lcPath = WinApi_GetEnvironmentVariable("PATH")

Note: This is a static function not a class method

WinApi_GetEnvironmentVariable(lcVar)

Return Value

Result from env call or "" if the var doesn't exist or is empty.

Parameters

lcVar
Environment Variable


See also:

Class wwAPI

© West Wind Technologies, 2023 • Updated: 11/13/18
Comment or report problem with topic