' 2) write a program to display the subdatatype of a variable
' To know more about vbscript datatypes and subdata types see
http://qtpcomplete.blogspot.com/2011/07/sub-datatypes.html
Dim x
x = 10
WScript.Echo TypeName(x)
' the above statement will print the subdata type of x : Integer
x = "Test String"
WScript.Echo TypeName(x)
' the above statement will print the subdata type of x : String
x = True
WScript.Echo TypeName(x)
' the above statement will print the subdata type of x : Boolean
' To know more about vbscript datatypes and subdata types see
http://qtpcomplete.blogspot.com/2011/07/sub-datatypes.html
Dim x
x = 10
WScript.Echo TypeName(x)
' the above statement will print the subdata type of x : Integer
x = "Test String"
WScript.Echo TypeName(x)
' the above statement will print the subdata type of x : String
x = True
WScript.Echo TypeName(x)
' the above statement will print the subdata type of x : Boolean
No comments:
Post a Comment