Please, help about :item . Using an ocx control

From: Joaquin Garcia Santos <jis_at_iberdrolaingenieria.es>
Date: Wed, 14 Apr 1999 16:26:50 +0200
Message-ID: <7f285m$5b5$1_at_talia.mad.ttd.net>



Hello,
I am using an ocx control, but I have an error that I do not understand. I hope you can help me.
I have a form with a block called 'bloque', and in this block I have an item called 'ocx' that is an ocx item.
When I want to pass this ocx item to a procedure I must write the next: Comctl_ITreeView10.Style(:item('bloque.ocx').interface,

      ComctlLib_CONSTANTS.tvwTreeLinesPlusMinusText); Well I use :item('bloque.ocx'), but I see that 'bloque.ocx' is a string, so I think that I can do the next:
declare

   cadena varchar2(100);
begin

   cadena := 'bloque.ocx';
   Comctl_ITreeView10.Style(:item(cadena).interface,

      ComctlLib_CONSTANTS.tvwTreeLinesPlusMinusText); end;
Well, when I compile I get this error:
Error 49
bad bind variable 'item('
Error 103
Encountered the symbol cadena when expecting one of the following: ... What am I doing wrong? Thanks a lot Received on Wed Apr 14 1999 - 16:26:50 CEST

Original text of this message