Results 1 to 2 of 2

Thread: What the DataTypes in VBScript

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Atlanta, GA
    Posts
    8

    Question

    I got asked this in an interview, and I'm not sure about this. If you declare a variable in vbscript by typing:

    Dim X, Y, Z

    Then are there any datatypes in vbscript or they all default to Variant? If they are Variant, then that means there is ONE type, otherwise it is none.

    Which is it??
    "The God of VB has Spoken"
    Senior Developer Analyst
    Siemens Energy & Automation
    Alpharetta, GA

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    VBScript is variants only. You can have sub-types which VB handles determining what they are. You will find that there are times when you have to explicitly convert them using CStr or CInt etc..

    /\/\onte96

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width