Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameters of the GetEnvVar function
#4
Solved using GLM5.3.

Function getEnv2
Code:
Copy      Help
function$ $name [str&value]

int n1(4) n2
str t
;g1
BSTR b.alloc(n1)
n2=GetEnvironmentVariableW(@name b n1)
if(n2>n1) n1=n2; goto g1
if(n2)
,if(&value) value.ansi(b); ret value
,t.ansi(b)
,ret t
if(&value) value.all


Messages In This Thread
Parameters of the GetEnvVar function - by Davider - 09-07-2026, 07:22 AM
RE: Parameters of the GetEnvVar function - by Davider - 09-07-2026, 10:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)