Re: Referencing Package Variables

From: Mark Prebilic <prebilic_at_grci.com>
Date: 1998/01/15
Message-ID: <34BE28F1.8932EE3B_at_grci.com>#1/1


This method will not work because Forms 4.5 uses PL/SQL version 1, which does not
allow direct access to package variables. Instead, you need to call a function or
procedure to get and set the variables. I have had to do this same thing in a project I'm
on and I've ended up using the ps_global package supplied by Steven Feuerstein in
his "PL/SQL Programming" book (copyright 1995). It has worked quite well.

calderproj wrote:

> I am currently using Forms 4.5. I am trying to get away
> from using GLOBAL variables by using variables declared in a Package
> Spec.
>
> Package Security IS
>
> g_fred NUMBER;
>
> END Security;
>
> The program Unit contains the following
>
> Security.g_fred := 3;
>
> When trying to reference the variable in the Program Unit in Forms I
> get
> message 'Component g_fred must be declared'. Why?
>
> Thanks in Anticipation
>
> PRO
Received on Thu Jan 15 1998 - 00:00:00 CET

Original text of this message