Unlike a Variable, a Constant
is a value that cannot be changed during the execution of the script.
If we try to change the value of a constant, VBScript throws error Illegal Assignment
Declaring
Constants: Constants in VBScript can be declared
using 'Const' statement.
Const a = 10
Const name = "QTP Sreenu"
Const name = "QTP Sreenu"
Note: We represent Date and Time values by enclosing them with #
Const Datea = #03/08/2015#
Const Timea = #3:36:00 PM#
No comments:
Post a Comment