ICE34
ICE34 會驗證每個 RadioButtonGroup Control 上的每個單選按鈕 在指定單選按鈕群組 RadioButton 數據表的 [屬性] 數據行 屬性。 ICE34 會驗證此屬性是否存在,並且設定為 [屬性] 數據表中的預設值, 這等於 RadioButton 數據表 [值] 數據行中的其中一個群組單選按鈕值。
單選按鈕群組必須有預設值,使用者才能使用 TAB 鍵來選取選擇。 這是適當的用戶輔助功能的必要專案。
ICE34 報告遺漏的數據表。
結果
如果單選按鈕指定無效的屬性,ICE34 就會張貼錯誤訊息。
例
ICE34 會報告下列範例所示的錯誤。
ICE34 錯誤 | 描述 |
---|---|
控件 DialogA.Control2 必須有 屬性,因為它的類型為 RadioButtonGroup。 | RadioButtonGroup 控制件,沒有在 [屬性] 資料表的 [屬性] 資料行中設定 間接控件 位,該控件沒有屬性列在 [屬性] 資料行中。 |
也許不是使用 Property3 屬性之 RadioButtonGroup 的有效預設值。 值必須列為 RadioButtonGroup 數據表中的選項。 | Property 資料表的 Value 資料列中指定屬性的預設值 不是 RadioButton 資料表之 Value 資料行中所指定單選按鈕群組的其中一個值,。 |
必須定義 PropertyB,因為它是 RadioButtonGroup 控件 DialogA.Control4 的間接屬性 | 此 RadioButton 群組所參考的屬性是間接屬性,而間接屬性的值不是 RadioButton 群組的其中一個選項。 |
也許 不是 PropertyA 屬性的有效預設值。 屬性是 Control DialogA.Control5 的間接 RadioButtonGroup 屬性(透過 property5)。 | 透過控件參考的間接屬性值不是該 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 | 是的 |
Property3 | 或 |
Property4 | PropertyB |
Property5 | PropertyA |
PropertyA | 或 |
RadioButton 資料表 (部分)
財產 | 次序 | 價值 |
---|---|---|
Property1 | 1 | 是的 |
Property1 | 2 | 現在 |
Property2 | 1 | 是的 |
Property2 | 2 | 不 |
Property3 | 1 | 是的 |
Property3 | 2 | 不 |
Property4 | 1 | 是的 |
Property4 | 2 | 不 |
PropertyA | 1 | 是的 |
PropertyA | 2 | 不 |
PropertyB | 1 | 是的 |
PropertyB | 2 | 不 |
若要修正此 ICE 所報告的錯誤,請檢查下列各項:
- 沒有間接屬性集的每個 RadioButton 控制項專案都有屬性列在 Property 資料行中:
- 每個這類屬性在 RadioButton 數據表中至少有一個對應的專案。
- 每個這類屬性都會定義在 Property 數據表中,其值為 RadioButton 數據表中的其中一個選項。
- 在 RadioButton 控件的 Property 數據行中,具有間接屬性集的每個屬性都會定義在 Property 數據表中。
相關主題