Re: developer 2000...global variables

From: Hein van Vroonhoven <Hein.vanVroonhoven_at_akzonobel.com>
Date: Wed, 29 Mar 2000 08:19:46 +0200
Message-ID: <B1D5796F39B9D311908C00805F59305C020B31BB_at_news.ahm-nl.akzonobel.nl>


don't use globals.
Use a parameter.
In form B you can check if parameter value is filled. You can do this in a pre-form trigger or you can use it in a default where clause NVL(parameter.value,di this, do that).

HtH.

Hein

Mike Rainville wrote in message <38E159C0.33C8A2F1_at_musica.mcgill.ca>...
>This probably needs to be in both forms:
>Default_Value('y',global.directory');
>If it doesn't exist it will be created.
>
>Mike
>
>ssharma24_at_my-deja.com wrote:
>
>> 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 Wed Mar 29 2000 - 08:19:46 CEST

Original text of this message