as the title states. Is there a way to determine if both datatypes are the same?

as the title states. Is there a way to determine if both datatypes are the same?

var.GetType() method.

Dim no As Integer
 Dim no1 As Double
        

 If no.GetType().Equals(no1.GetType()) Then
   '
   ' 
 End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.