View Single Post
Old 04-25-2011, 11:17 PM   PM User | #1
NKeuxmuis
New Coder

 
Join Date: Feb 2011
Posts: 23
Thanks: 4
Thanked 0 Times in 0 Posts
NKeuxmuis is an unknown quantity at this point
Can anyone explain what this small piece of code does?

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?

Code:
Dim clients = From client In xmlDS...<client> _
        Where client.<body_type>.Value Like "*" & lstBodyType.SelectedValue And _client.<sex>.Value Like "*" & lstSex.SelectedValue _
        Select client
NKeuxmuis is offline   Reply With Quote