forms--讓指定的 Record 的 ITEM 改變顏色

有時候我們想讓ITEM的某些 Record 改變顏色,例如:分數 Item 的值在60以下,為紅色。

1、建立一個Visual_Attributes,如下圖的VISUAL_ERROR



2、程式使用下列語法:

Set_item_instance_property(,CURRENT_RECORD,Visual_attribute,);

例:

      if :math.score < 60 then 
          Set_item_instance_property('math.score',CURRENT_RECORD,Visual_attribute,'visual_error');
      end if;


Windows 11安裝時跳過網路連線