Re: developer 2000...global variables

From: OLGA GREEP <olga_at_hi.nl>
Date: 2000/03/02
Message-ID: <89mg6q$3jua1$1_at_reader1.wxs.nl>#1/1


hi,

here is yet another solution:

Make use of the built_in GET_APPLICATION_PROPERTY like this:

if get_application_property (calling_form) = 'FORM_A' then
  If (:global.directory = ‘y’) then……statements…   end if;
end if;

good luck

Olga Greep

ssharma24_at_my-deja.com wrote in message <89htmu$ocb$1_at_nnrp1.deja.com>...
>I am using call-form built in:
>Form ‘A’ calls form ‘B’
>
>I initialize a global variable in Form A
>Saying :
>:global.directory := ‘y’;
>
>then in “when new form instance” trigger of form B, I put an if
>statement saying :
>If (:global.directory = ‘y’) then……statements…
>
>So, that when form B is called, Form B will know that it’s been called
>from form A.
>
>This works fine when I call form B from form A.
>
>The problem arises when I try to use only the form B (i.e. when I am
>not calling it from A). At this time it gives me an error saying
>that :error frm-40785 :global.directory variable does not exist.
>
>Please help..
>
>Thanks…
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Received on Thu Mar 02 2000 - 00:00:00 CET

Original text of this message