How many data types are supported in Vbscript?

Answer Posted / abbas khan

There is only one Data Type in vbScript , which is able to
store any kind values such as integer, string, double, date
etc. (We term it as Varient).

To know what kind of value a variable contains,
use "TypeName" keyword.

Example :

Var1 = "abcde"
Msgbox TypeName(Var1) 'OutPut will be string

Var2 = "1234"
Msgbox TypeName(Var2) 'OutPut will be integer

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you convert a given number to long in vbscript?

656


who will create the object?

1901


What is purpose of scripting.filesystemobject class in vbscript?

860


Which keyword is used to declare a variable in the vbscript language?

695


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

2016


write any ttest cases using check points and parameterization

2023


Why is the use of exit do or exit for statements within loops discouraged?

753


How to add actions in driver script to run those actions in QTP?

1707


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

689


What is the purpose of on error resume next statement?

750


How to Import data from a file (file is on the desktop) to the data table

1742


What is the technology used by vb script?

725


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

1822


Which data type/types are supported by vbscript language and what are their specialties?

794


How do you declare a variable in vbscript?

822