Re: Unix Env variables from Forms4.5
Date: Sat, 29 Aug 1998 05:52:39 +0200
Message-ID: <35E77B07.147287E_at_pop.iperbole.bologna.it>
The following example is part of Forms45 on-line documentation:
TOOL_ENV.GETVAR
Syntax:
PROCEDURE TOOL_ENV.GETVAR
(varname VARCHAR2,
varvalue VARCHAR2);
Parameters:
varname Is the name of the environment variable.
varvalue Is the value of the environment variable.
Description:
This procedure provides a way to import an environment
variable into a VARCHAR2 variable.
Example:
Suppose you have a procedure that needs the current user's userid.
You could include the following PL/SQL statement using
TOOL_ENV.GETVAR:
TOOL_ENV.GETVAR('USER', :userid);
I use the "TOOL_ENV.GETVAR" built-in to capture various environment
variable,
but the capture of the system username is allowed only on UNIX systems
(I work
under AIX and HP-UX) and not under Win95-NT
Bye Received on Sat Aug 29 1998 - 05:52:39 CEST