ENV Function

Started by gmundt, December 08, 2025, 02:36:10 PM

Previous topic - Next topic

gmundt

Can the environment function be used to return environment information from a local machine when in client / server using WindX?

? env("SSI_BASE") returns "" because it is checking for the environment variable on the linux server, but I want to check it on my local PC.

Loren Doornek

Use a call to *windx.utl.  For example:

call"[wdx]*windx.utl;get_val","ENV(""SSI_BASE"")",VAL$
PRINT VAL$

Devon Austen

Here is the documentation for the *windx.utl program. AS Loren said you can use the *windx.utl;get_val to have the env() function run on the local/client machine.

https://manual.pvxplus.com?windx/windxutl.htm
Principal Software Engineer for PVX Plus Technologies LTD.