How many data types are supported in Vbscript?
Answer Posted / satya
All variables in VBScript are a data type called Variant.
This means that you do not (and cannot)
explicitly declare the variable type. In fact, with
VBScript you do not need the Dim statement to allocate
storage for a variable. At runtime, the Parser in the
VBScript Scripting Engine determines the Variant
data subtype to be used.
Variant data subtypes Subtype Description
Boolean - Either True or False
Byte - Contains integer in the range 0 to 255
Currency Floating-point number in the range -
922,337,203,685,477.5808 to 922,337,203,685,477.5807
Date(Time)- Contains a number that represents a date
between January 1, 100 to December 31, 9999
Double -Contains a double-precision, floating-point number
in the range -1.79769313486232E308 to -
4.94065645841247E-324 for negative values;
4.94065645841247E-324 to 1.79769313486232E308 for positive
values
Empty -Uninitialized Variant
Error -Contains an error number used with runtime errors
Integer -Contains integer in the range -32,768 to 32,767
Long Contains integer in the range -2,147,483,648 to
2,147,483,647
Null -A variant containing no valid data
Object- Contains an object reference
Single -Contains a single-precision, floating-point number
in the range -3.402823E38 to -1.401298E-45
for negative values; 1.401298E-45 to 3.402823E38 for
positive values
String Contains a variable-length string that can be up to
approximately 2 billion characters in length.
The Parsers choice of data subtype will depend on how the
variable is used in a statement or function.
Note that a variable’s subtype can change within a code
segment.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
after medical test,when will be the police verification
In html file what is an ideal position to include vbscript?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
How will you convert a string to lower case string using vbscript?
What is loose binding? Why is it not a good practice to use it?
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
How to delete a cookie using vbscript?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
Explain sga memory structures?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
How will you get the smallest subscript of an array in vbscript?
Mention how to access array data?