Purple guy
- Camera: ILCE-6000
- Taken: 11 April, 2015
- Aperture: ƒ/2
- Focal length: 50mm
- ISO: 1600
- Shutter speed: 1/80s
Galaxy S6
Current book: The Truth about the Lordship of Christ
Nuts, bolts and washers
55-210
- Camera: ILCE-6000
- Taken: 8 April, 2015
- Aperture: ƒ/1.8
- Focal length: 50mm
- ISO: 1600
- Shutter speed: 1/25s
Vote Here Feet
- Camera: XT1095
- Taken: 8 December, 2002
- Aperture: ƒ/2.25
- Focal length: 4.235mm
- ISO: 50
- Shutter speed: 1/193s
Servers
- Camera: ILCE-6000
- Taken: 7 April, 2015
- Aperture: ƒ/1.8
- Focal length: 50mm
- ISO: 800
- Shutter speed: 1/80s
VB.net If then Else with a list of strings

In SQL server you can do an easy exclude or include list by using an in statement.
So you can do:
Select * from someTable where somecolumn in (‘somestring1’, ‘somestring2’, ‘somestring3’, ‘somestring4’)
So you only get records where the contents of somecolumn are in the specified list of strings.
I wanted to do something similiar in VB.net.
You can use an if then or statement but it can get messy.
If someStringToCheck = “somestring1” or someStringToCheck = “somestring2” or someStringToCheck = “somestring3” or someStringToCheck = “somestring4” then
…Do something blah blah…
end if
This works but what if you have a list of 20 strings you want to check for?
Through some internet searching I found this post on stackoverflow.com and came up with the following:
Dim someList = New List(Of String) From {“somestring1”, “somestring2”, “somestring3”, “somestring4”}
If someList.Contains(someStringToCheck) Then
…Do something blah blah…
else
…Do something else blah blah…
end if
It seems kind of backwards but it takes your list of strings and determines if the string you fed it is in that list. If so do something or if not then do something else.
- Camera: Venue 8 7840
- Taken: 7 April, 2015
- Aperture: ƒ/2.4
- Focal length: 2.94mm
- ISO: 37
- Shutter speed: 1/85s
- Title: Jpeg
Blue
- Camera: ILCE-6000
- Taken: 7 April, 2015
- Aperture: ƒ/1.8
- Focal length: 50mm
- ISO: 640
- Shutter speed: 1/80s







