J
Jim Heavey
I want to know if the type of data of one object is the same type as another
object.
The "TypeOf" function let's me find out it the object is integer or string
or.... but it does not seem to allow me to compare the types of 2 object to
see if the are of the same type.
How do I do this?
dim item1 as string = "Fred"
dim Item2 as Integer = 37
values(0) = item1
values(1) = item2
if typeof row.Item(0) is typeof values(1)
object.
The "TypeOf" function let's me find out it the object is integer or string
or.... but it does not seem to allow me to compare the types of 2 object to
see if the are of the same type.
How do I do this?
dim item1 as string = "Fred"
dim Item2 as Integer = 37
values(0) = item1
values(1) = item2
if typeof row.Item(0) is typeof values(1)