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

thank you!

Be a part of the DaniWeb community

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