Compare variable datatype HELP URGENT!!!!

  • Thread starter Thread starter Ken Tucker [MVP]
  • Start date Start date
Does anyone know how to compare datatype of two different variables? I need
to check if the variable type is a Double if so do something.
Thanks in advance.
 
* "news.microsoft.com said:
Does anyone know how to compare datatype of two different variables? I need
to check if the variable type is a Double if so do something.

\\\
If TypeOf foo Is Double Then...
///

And, for comparing two variables' data types:

\\\
If b.GetType() Is c.GetType() Then...
///
 
Back
Top