v10.2, How to remove a Studio Environment variable
denis at woodmic.net
Sat Feb 20 23:25:49 UTC 2021
Sorry I forgot to mention it was on macOS Mojave and Studio 10.2
The environment variables I was meaning were the Studio Environment Variables.
They only exist in Studio and they to be set every time the library is started and they clear when you quit Omnis, found that out a bit later.
I had to set these variables ODBCINI, ODBCSYSINI, ODBCINSTINI have to be set in order to be able to retrieve the ODBC drivers installed on the workstation with the $getdrivers() ODBC session method.
Might be another way but this works.
Thanks for taking the time
From: Doug Easterbrook <doug at artsman.com>
Date: Saturday, February 20, 2021 at 1:21 PM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Cc: Denis Woodbury <denis at woodmic.net>
Subject: Re: How to remove a Studio Environment variable
you don’t say if you are using mac or windows but there is no command in omnis to delete an env var.
if you are trying to clear its value because you don’t want it seen outside omnis, you could putenv() again and set the value to something like ‘empty’, ‘’ or what have you.
In theory, if you are setting it, then it should go away when you quit omnis anyway.
in osx there is a command called unset which you might be able to use in a shell script, the launch program or somehow in applescript.
if you are talking about permanently removing it, you might want to edit you .bash_profile (mac) on windows you can edit the user profile
not sure if that helps you since its not clear if you are creating it in omnis, or trying to do away with something that was set up before you started omnis.
Arts Management Systems Ltd.
mailto:doug at artsman.com
Phone (403) 650-1978
On February 20, 2021, at 9:29 AM, Denis Woodbury via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
The putenv() function can be used to add or change an environment variable.
How can an environment variable be removed or where are they stored?
Manage your list subscriptions at http://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en