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...
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top