GetEnvironmentString not working in Script Library

I have a very simple piece of code to get an environment variable out of notes.ini. It works fine when I test it from a button in a form, getting me both “true” variable (without $) and “false” (with $ prefix).

But exactly the same piece of code, looking for the same variables, returns nothing when executing in a piece of called script from a library. It’s got the session OK, it’s running locally not on server, but doesn’t work.

Any ideas please.

Subject: GetEnvironmentString not working in Script Library

Sorry, it was working. Hot weather makes for stupid programming.