0

The below code will fill User Records in "users".

    Dim users= From p In oDbUser.USERs Where p.STATE= "MI" And p.STATUS = 1

Can anyone tell me how can i use a foreaach loop in the result and take each indidual row items ?

1

1 Answer 1

2

I think you also need a Select clause in that linq query.

And that is the most relevant part, assuming a simple Select p you can do

For Each user In users 

Next user

(you may want to check the VB syntax)

Sign up to request clarification or add additional context in comments.

1 Comment

@Geoffrey, Thanks, I will edit. I did warn about my VB skills.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.