PDA

Click to See Complete Forum and Search --> : What the DataTypes in VBScript


debashis22
Sep 6th, 2000, 02:58 PM
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??

monte96
Sep 7th, 2000, 12:37 AM
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