Apologies for the simple question. I started a Visual Basic 2005 course in September and somehow I don't think we ever discussed it. Googling has been difficult because I don't know what it is called.
In SQL, you can specify a range of values. For instance:
Select *
from MyTable
where MyField in (1, 2, 3, 4)
What is the equivalent in vb. I'm using integers. I want to say
If Now.Year.ToStri ng.Substring(3, 1) "in" and I want to show the even numbers, then do something else.
Is this simple?
Thank you in advance.
In SQL, you can specify a range of values. For instance:
Select *
from MyTable
where MyField in (1, 2, 3, 4)
What is the equivalent in vb. I'm using integers. I want to say
If Now.Year.ToStri ng.Substring(3, 1) "in" and I want to show the even numbers, then do something else.
Is this simple?
Thank you in advance.
Comment