Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Parameter from one form to another form
>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