Kbase 17493: Alternate ways to set Env variables for API code in 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Alternate ways to set Env variables for API code in 4GL
The Scenario: You are creating an application in the Progress 4GL or
UIB that calls an Actuate report to be generated via the use of
Actuate API's.
It so happens that you don't want to have to set the necessary
environment variables in the Autoexec.bat file. This could be the
case for any number of reasons.
So the question comes up: How do you set the necessary environment
variables?
The best way to set the necessary environment variables globally is
as follows:
From the same .p or code that calls the Actuate report, use the
WIN32 API - SetEnvironmentVariable - to set the necessary environment
variables.
The use of this SetEnvironmentVariable api is described in Progress
Kbase 17125 "How to Call WIN32 API Function: SetEnvironmentVariable".
NOTE: The use of SetEnvironmentVariable must be done in the code
BEFORE the api call to generate the Actuate report is made.
12/18/97 FS
Progress Software Technical Support Note # 17493