mardi 2 août 2016

Simple if check for multiple values vb

In Sql we can filter like SELECT * FROM tableName WHERE columnName IN ("firstValue", "secondValue")

How to check in VB.Net, is there a simple way to do it? or, is it just

If variable = "firstValue" Or "secondValue"
    'Code Here
End If

Aucun commentaire:

Enregistrer un commentaire