用于更改项目属性的按钮是否可见

问题描述 投票:0回答:1

看看我在一个按钮中写的代码(当按下按钮时)

set_item_property('TEXT_ITEM17', visible, property_false);
set_item_property('TEXT_ITEM17', visible, property_True);

我是否需要将其置于if语句中?

oracle oracle11g oracle10g oracleforms
1个回答
4
投票

你可能需要这个:

if get_item_property('TEXT_ITEM17', visible) = 'TRUE' THEN
     set_item_property('TEXT_ITEM17', visible, property_false);    
else
     set_item_property('TEXT_ITEM17', visible, property_true);
end if;
© www.soinside.com 2019 - 2024. All rights reserved.