Re: FORMS4.5 (PASSING GLOBAL VARIABLES)

From: Jomarlen <jomarlen_at_aol.com>
Date: 1997/10/24
Message-ID: <19971024162601.MAA01190_at_ladder02.news.aol.com>#1/1


There may be scenarios where it is possible to try to use a global that hasn't been created.

To avoid this use the default_value built-in.

default_value('X','global.my_var');

If the global exists default_value does nothing otherwise the global is created with the value of the first argument. Note that the global is in quotes NOT :global.my_var.

John

>Subject: Re: FORMS4.5 (PASSING GLOBAL VARIABLES)
>From: a.j.heney_at_btNOinterSPAMnet.com (Alex Heney)
>Date: Fri, Oct 24, 1997 03:55 EDT
>Message-id: <34505370.3578615_at_news.axion.bt.co.uk>
>
>On Thu, 23 Oct 1997 23:07:55 -0400, Hakan Eren <sarisin_at_interlog.com>
>wrote:
>
>>Call_form built-in will work fine.
>>
>
>
>So will Open_Form
>
>Which method you use to call the other form is completeley irrelevant.
>Once a global variable has been delclared, it is available everywhere
>in the FORMS session, unless Erased.
>
>If he is getting that message, then either he has mistyped the name in
>one of the two places, or the code declaring the gloabal variable has
>not actually been executed, or he has called th buil-in Erase
>specifying that global variable.
>
>There are no other possibilities.
>
>>> Hi,
>>>
>>> In my application, I have to pass global variables from one form
>>> to another form. I assign the values to the global variables in the
>>> calling form and then use the OPEN_FORM built_in to open another form.
>>> In the called form ,When I use the global variables,and then run the
>>> application,When the form opens the called form,I get the error
>>> "FRM-40815: Global variable <name> does not exist".
>>>
>>> Can anyone give hints on how to pass the Global variables in a
>>> multiple form application.
>>>
>>> Thanks in advance
>>>
>>> Bye
>>> Deepak
>>>
>>> -------------------==== Posted via Deja News ====-----------------------
>>> http://www.dejanews.com/ Search, Read, Post to Usenet
>>
>>
>>
>
>--
>The above posting represents the personal opinions of the author and
>is not to be taken as official (or unofficial) policy or opinions of
>his employer.
>
>Remove XSPAM from mail_id if replying via email.
>Alex Heney, Living in the Global Village.
>
>
>
>
>
>
>
Received on Fri Oct 24 1997 - 00:00:00 CEST

Original text of this message