Re: Plez help with FIND_WINDOW() command...

From: Daniel Lefenda <daniel.lefenda_at_mora.cz>
Date: Wed, 13 Sep 2000 10:33:03 -0600
Message-ID: <k4Ov5.19$817.6130_at_wdc-read-01.qwest.net>


Simple solution: you need to pass a varchar2 string or variable to the function:
window_id := FIND_WINDOW('CR_PR');

The compiler thinks you were passing a variable - undeclared.

"Richard Hollingsworth" <william.hollingsworth_at_hsv.boeing.com> wrote in message news:39BF9E06.CD8E8994_at_hsv.boeing.com...
> Hi. Thanks for reading this.
>
> I have a 3-form application (Oracle 8.0.5, FORMS 2.1 Ver. 5, Windows NT
> 4.0). The 1st form is a main menu consisting of 5 push buttons. The
> second form is my CP/PR database application. The 3rd form is my Action
> Tracking DB application.
>
> When a user presses the 1st (CR/PR Database) button, I want to kick off
> the CR/PR application.
>
> So, I created a 'When-Button-Pressed' trigger on the 1st button. My
> book shows the following code to start an application's window
> running.....
>
> DECLARE
> window_id WINDOW;
>
> BEGIN
> window_id := FIND_WINDOW(CR_PR);
> SHOW_WINDOW(window_id);
> END;
>
> *** I snipped out the exception handling stuff for clearity ****
>
> When I try to compile this code, I get...
>
> Identifier 'CR_PR') must be declared;
>
> Can you please tell me what's wrong with this code.
>
> I've already tried.... OWNER.CR_PR
> FORM_NAME.CR_PR
> and OWNER.FORM_NAME.CR_PR
>
> None of these worked either.
>
> Thanks,
> Richard
>
Received on Wed Sep 13 2000 - 18:33:03 CEST

Original text of this message