Validating a listView
-
I need to be able to validate the list View. I need to know how to check and see if the user did not check a box.
-
I need to be able to validate the list View. I need to know how to check and see if the user did not check a box.
Just have a boolean value set to true or false based on if a box has been checked. Set the boolean value in an event procedure that is fired when the box is checked. That is my quick stab at it, without any detailed code or description of what you are trying to do.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
Just have a boolean value set to true or false based on if a box has been checked. Set the boolean value in an event procedure that is fired when the box is checked. That is my quick stab at it, without any detailed code or description of what you are trying to do.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
This is my validation if statement. When I debug I get an error. Can you give me an example of how to check for a checked item using the boolean value?
If lvwRent.CheckedItems(0).Text Is "" Then
-
This is my validation if statement. When I debug I get an error. Can you give me an example of how to check for a checked item using the boolean value?
If lvwRent.CheckedItems(0).Text Is "" Then
why would you need Text? just look at the count of the items in lvwRent.CheckedItems :)
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|
-
why would you need Text? just look at the count of the items in lvwRent.CheckedItems :)
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|
Thanks, Luc, you saved me from some code typing :-\
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
Thanks, Luc, you saved me from some code typing :-\
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
When code does not feel good, I'd prefer to remove some, rather than add some. :laugh:
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|
-
When code does not feel good, I'd prefer to remove some, rather than add some. :laugh:
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|
I agree :-D
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon