PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: gmundt on December 08, 2025, 02:36:10 PM

Title: ENV Function
Post by: gmundt on December 08, 2025, 02:36:10 PM
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.
Title: Re: ENV Function
Post by: Loren Doornek on December 08, 2025, 03:07:18 PM
Use a call to *windx.utl.  For example:

call"[wdx]*windx.utl;get_val","ENV(""SSI_BASE"")",VAL$
PRINT VAL$
Title: Re: ENV Function
Post by: Devon Austen on December 09, 2025, 08:37:06 AM
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