Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Parameter from one form to another form

Re: Parameter from one form to another form

From: Rauno Seppanen <rauno.seppanen_at_icon.fi>
Date: Sun, 15 Aug 1999 07:20:45 GMT
Message-ID: <hTtt3.18$BA4.81@read2.inet.fi>


>How do you pass a parameter from one form to another form using Forms
>Desingner in Developer/2000 ?
>

This must be asked and answered thousand times but here it is again: - in your calling form define a global variable like this :GLOBAL.your_variable := 10;

DEFAULT_VALUE(NULL,'GLOBAL.your_variable'); - this means that :GLOBAL.your_variable value is NULL by default if it wasn't given any value in the calling form (or the form is called from somewhere else)
- and when you need the global variable in the called form use it like any other variable (only you don't have to declare it again) for example like this
Message(':GLOBAL.your_variable value = ' || :GLOBAL.your_variable);

And it would be good programming if you would erase the GLOBAL.your_variable after you don't need it anymore. It is case sensitive that shoul it be on the form that calls another form or should it be on the called form. Anyway on that form's key-exit trigger that handles the GLOBAL.your_variable last time. The command is like this
ERASE('GLOBAL.your_variable');

By the way, look very carafully where I used : before GLOBAL word and where not. Received on Sun Aug 15 1999 - 02:20:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US