Re: Referencing Package Variables

From: (wrong string) ørgensen <kjorg_at_msn*DOT*com>
Date: 1998/01/14
Message-ID: <urVtV$UI9GA.184_at_upnetnews03>#1/1


Usually, SQL*Forms doesn't take too kindly on referencing variables in packages. It prefers to reference only procedures and functions:

    :my_block.my_item := package_name.function_name( parameters .... )

works ok. Similarly, calling procedures work ok. I have yet to see any attempts at referencing variables/constants that work. So far, we've had to work around it via e.g.

    package my_pack is

        Fred number;
        function get_Fred return number;
        procedure set_Fred(new_Fred in number);
    end my_pack;

etc.

This *may* be resolved in a later version of SQL*Forms - I hope.

--
Karl

calderproj wrote in message <34BD716A.6D4F_at_dial.pipex.com>...

>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 Wed Jan 14 1998 - 00:00:00 CET

Original text of this message