Variants in VB script

Here is a set of varients which is usefull during coding in QTP.
Please have a print out of it and keep infront of the desk.This list is very much usefull while working with datatypes.

Subtype Description
Empty Variant is uninitialized. Value is 0 for numeric variables or a zero-length string ("") for string variables.
Null Variant intentionally contains no valid data.
Boolean Contains either True or False.
Byte Contains integer in the range 0 to 255.
Integer Contains integer in the range -32,768 to 32,767.
Currency -922,337,203,685,477.5808 to 922,337,203,685,477.5807.
Long Contains integer in the range -2,147,483,648 to 2,147,483,647.
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.
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.
Date (Time) Contains a number that represents a date between January 1, 100 to December 31, 9999.
String Contains a variable-length string that can be up to approximately 2 billion characters in length.
Object Contains an object.
Error Contains an error number.
Variants in VB script Variants in VB script Reviewed by Animesh Chatterjee on September 17, 2009 Rating: 5


  1. Hi Animesh

    Saw ur blog. Its quite good. But We were unable to locate the answers to the ISTQB questions. Also, going through the book --> foundation of software testing -- ISTQB certification, enough for the exam or should we take up any tutions?

    We are also interested in learning QTP. Do you suggest some third party trainings? Is it useful?

    We are working in the IT sector.

    We have been involved with manual testing till date. Should we upgrade our skills to automation? Is there a market of manual testers now? Are only automated testers prefered in the industry? Any suggestions would be welcomed.


  2. Hi Chitra/Ipsita
    I have started posting the solutions one by one with logic and reasons..

    You can visit few Qality center related recent posts where i have given logic and answares.

    Third party training is good but i never took that and will suugest pls dont take such training.

    You can follow the assignments and read more.

    It is always good to upgrade skillset.You can always go for QTP.


Powered by Blogger.