需要能够将元素从True更改为False
For Each item In CheckedListBox1.CheckedItems
Dim appQuery = _
From c In doc.<applications>.<app> _
Where c.<appName>.Value = item _
Select c.<appName>, c.<appfav>
For Each result In appQuery
result.appfav.Value = False
Next
Next
doc.Save(xmlFilePath)
我没看到什么?
答案 0 :(得分:0)
所以,
我在select语句中添加了一个项目,一切正常。我删除它,它不是我感到困惑,但操作。
For Each item In CheckedListBox1.CheckedItems
Dim appQuery = _
From c In doc.<applications>.<app> _
Where c.<appName>.Value = item _
Select c.<appName>, c.<appfav>, c.<appType>
For Each result In appQuery
result.appfav.Value = False
Next
Next
doc.Save(xmlFilePath)