troubleshooting Question

Write to textbox all items that = true from database.

Avatar of kouts1
kouts1Flag for United States of America asked on
.NET Programming
3 Comments1 Solution264 ViewsLast Modified:
Hi all,

I am stuck trying to figure this out.  I need to write to a textbox only if all items are true.

for example:  if I have the following (dynamic items from DB):
item1 = true
item2 = true
item3 = true
item4 = false
item5 = false

then I need to write to the textbox if all the true values:
for example: item1, item2, Item3

if item1 = true then
textbox1.text = "item1" & ", "
textbox1.text = Nothing

I need to go through all the true items. It's like "And/OR".   I am not sure how to do this.

any ideas would help!  

Thank you!
Sr. System Analyst

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros