View Full Version : Can anyone explain what this small piece of code does?

04-26-2011, 12:17 AM
Can anyone explain what is happening in the following code? I want to understand it fully so would like somebody to explain. I especially don't understand the "From client In xmlDS...<client>". I understand that the whole thing selects the client tags from an XML file. But what does each individual thing do?

Dim clients = From client In xmlDS...<client> _
Where client.<body_type>.Value Like "*" & lstBodyType.SelectedValue And _client.<sex>.Value Like "*" & lstSex.SelectedValue _
Select client