ICE34

ICE34 會驗證每個 RadioButtonGroup Control 上的每個選項按鈕都有 RadioButton 資料表 的 Property 資料行中指定其選項按鈕群組的屬性。 ICE34 會驗證此屬性是否存在,並且設定為 Property 資料表 中的預設值,其等於 RadioButton 資料表的 Value 資料行中的其中一個群組選項按鈕值。

選項按鈕群組必須具有預設值,使用者才能使用 TAB 鍵來選取選擇。 這是適當的使用者協助工具的必要專案。

ICE34 報告遺漏的資料表。

結果

如果有指定無效屬性的選項按鈕,ICE34 就會張貼錯誤訊息。

範例

ICE34 會針對顯示的範例報告下列錯誤。

ICE34 錯誤 描述
控制項 DialogA.Control2 必須具有 屬性,因為它是 RadioButtonGroup 類型。 Control 資料表的 Attributes 資料行中沒有設定 Indirect 控制項位的RadioButtonGroup 控制項,該控制項沒有屬性列在 Property 資料行中。
或許不是使用 Property3 屬性之 RadioButtonGroup 的有效預設值。 此值必須列為 RadioButtonGroup 資料表中的選項。 Property 資料表的 Value 資料行中指定屬性的預設值,不是RadioButton 資料表之 Value 資料行中所指定選項按鈕群組的其中一個值。
必須定義 PropertyB,因為它是 RadioButtonGroup 控制項 DialogA.Control4 的間接屬性 這個 RadioButton 群組所參考的屬性是間接屬性,而間接屬性的值不是 RadioButton 群組的其中一個選項。
可能不是 PropertyA 屬性的有效預設值。 屬性是透過 property5) 控制項 DialogA.Control5 (的間接 RadioButtonGroup 屬性。 透過 控制項參考的間接屬性值不是該 RadioButtonGroup 的其中一個預設值。

 

控制資料表 (部分)

對話 控制 類型 屬性 屬性
DialogA Control1 RadioButtonGroup 0 Property1
DialogA Control2 RadioButtonGroup 0  
DialogA Control3 RadioButtonGroup 0 Property3
DialogA Control4 RadioButtonGroup 8 Property4
DialogA Control5 RadioButtonGroup 8 Property5

 

屬性工作表 (部分)

屬性
Property1 Yes
Property3 可能
Property4 PropertyB
Property5 PropertyA
PropertyA 可能

 

RadioButton 資料表 (部分)

屬性
Property1 1
Property1 2 Now
Property2 1
Property2 2 No
Property3 1
Property3 2 No
Property4 1
Property4 2 No
PropertyA 1
PropertyA 2 No
PropertyB 1
PropertyB 2 No

 

若要修正此 ICE 回報的錯誤,請檢查下列各項:

  • 沒有間接屬性集的每個 RadioButton 控制項專案都有屬性列在 [屬性] 資料行中:
  • 每個這類屬性在 RadioButton 資料表中至少有一個對應的專案。
  • 屬性資料表中定義了每個這類屬性,其值為 RadioButton 資料表中的其中一個選項。
  • 在 RadioButton 控制項的 Property 資料行中,具有間接屬性集的每個屬性都會定義在 Property 資料表中。

ICE 參考