Re: ActiveX control in Forms 5.0
Date: Tue, 02 Feb 1999 15:30:25 GMT
Message-ID: <7975mi$79r$1_at_nnrp1.dejanews.com>
Hi Clayton,
> Has anybody ever incorporated the amovie.ocx activeX control into an Oracle
> Form? I've been able to find the accessor methods for the controls, but I
> have been unable to make use of them. This is my first attempt at adding
> an ActiveX control to a form.
I haven't incorporated amovie.ocx, but used other OCX.
>
> In particular, I've used the FileName(interface OleObj, FileName VARCHAR2)
> procedure to open a file. My call looks like this:
> FileName( :Block.item, '1.wav');
> where :Block.item is the name of the ActiveX control item within my form,
> and the 1.wav is the name of the file I'm trying to open. I get the
> compile-time message of a "bad bind variable 'Block.item'". What am I
> doing wrong?
You need to get the interface pointer:
declare
refocx ole2.obj_type;
begin
refocx := forms_ole.get_interface_pointer( '<Name of OCX_Item>' ); [...]
then you can use
<Package_NAME>.FileName( refocx, '1.wav' );
> If somebody has done this before, I would appreciate it if I could get a
> solid example of the PL/SQL and item properties required to duplicate it.
Hope it helped
regards
Stefan
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Feb 02 1999 - 16:30:25 CET