Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 925743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:34:05+00:00 2026-05-15T19:34:05+00:00

How do I get the type of a variable using VBScript?

  • 0

How do I get the type of a variable using VBScript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:34:05+00:00Added an answer on May 15, 2026 at 7:34 pm

    Is VarType what you need?

    Returns a value indicating the subtype of a variable.

    +--------------+-------+---------------------------------------------+
    |   Constant   | Value |                 Description                 |
    +--------------+-------+---------------------------------------------+
    | vbEmpty      |     0 | Empty (uninitialized)                       |
    | vbNull       |     1 | Null (no valid data)                        |
    | vbInteger    |     2 | Integer                                     |
    | vbLong       |     3 | Long integer                                |
    | vbSingle     |     4 | Single-precision floating-point number      |
    | vbDouble     |     5 | Double-precision floating-point number      |
    | vbCurrency   |     6 | Currency                                    |
    | vbDate       |     7 | Date                                        |
    | vbString     |     8 | String                                      |
    | vbObject     |     9 | Automation object                           |
    | vbError      |    10 | Error                                       |
    | vbBoolean    |    11 | Boolean                                     |
    | vbVariant    |    12 | Variant (used only with arrays of Variants) |
    | vbDataObject |    13 | A data-access object                        |
    | vbDecimal    |    14 | Decimal Value                               |
    | vbByte       |    17 | Byte                                        |
    | vbLongLong   |    20 | LongLong integer (64 bit)                   |
    | vbArray      |  8192 | Array                                       |
    +--------------+-------+---------------------------------------------+
    

    The VarType function never returns the value for Array by itself. It
    is always added to some other value to indicate an array of a
    particular type. The value for Variant is only returned when it has
    been added to the value for Array to indicate that the argument to the
    VarType function is an array. For example, the value returned for an
    array of integers is calculated as 2 + 8192, or 8194. If an object has
    a default property, VarType (object) returns the type of its default
    property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 494k
  • Answers 494k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer For all Windows OSes since XP you can simply use… May 16, 2026 at 11:04 am
  • Editorial Team
    Editorial Team added an answer Your best bet is to provide a custom implementation of… May 16, 2026 at 11:04 am
  • Editorial Team
    Editorial Team added an answer You are after the PHP OpenSSL extension. Specifically, load the… May 16, 2026 at 11:04 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Using gcc, when I ask for an object/variable's type using typeid, I get a
I'm trying to read a file line by line to a string type variable
I am trying to understand array declarations, constness, and their resulting variable types. The
What is the difference between a variable declared as dynamic and a variable declared
In php we use includes. So variables defined in one file and then their
I have a custom class that, when called, will redirect to a page and
This is related to the question I asked at How to make an AJAX
I figured this would be a quick google, but extensive searching hasnt yielded any
I'm working on a vb.net application which imports from an Excel spreadsheet. If rdr.HasRows
I'm stuck in a rut. I hope some one can help. Basically, I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.