How can I switch the PROPERTY_FALSE as string

Hello

How can I switch the PROPERTY_FALSE & the PROPERTY_TRUE as string to
Set_Item_Property('MY_BLOCK.) MY_ITEM', ENABLED, PROPERTY_FALSE);

My requirement is to write a procedure as enable_fields(P_PROERTY_VALUE..) to enable or disable many items according to the value that I spend.

Set_Item_Property('MY_BLOCK.) MY_ITEM', ENABLED, P_PROERTY_VALUE);


Thanks in advance.

Infact, property_false and property_true are not strings, they are consistent with the values 5 and 4 respectively.

So wherever you want to have property_false, spend 5
and property_true, pass 4

But usually we do not follow this method, as the value of the constants may vary from one version to the other.

So in your procedure to say, go for turn 1 and 2 to disable

procedure (................, p_property number) is 

m_set_enable number ;
Begin
If p_property = 1 then
   m_Set_enable := property_true;
else

   m_Set_enable := property_false;
end if;
....
..
set_item_property('item1',enabled,m_set_enable);
...
End;

Published by: Dora on December 29, 2009 14:36

Tags: Oracle Development

Similar Questions

Maybe you are looking for