Friday, February 4, 2011

Data Type Validation in Vbscript

Dim temp
WScript.Echo (VarType (temp))
WScript.Echo (TypeName (temp))
WScript.Echo

temp = 3
WScript.Echo (VarType (temp))
WScript.Echo (TypeName (temp))
WScript.Echo

temp = 3111111
WScript.Echo (VarType (temp))
WScript.Echo (TypeName (temp))
WScript.Echo

temp = "afsda"
WScript.Echo (VarType (temp))
WScript.Echo (TypeName (temp))
WScript.Echo

ReDim temp(6)
WScript.Echo (TypeName (temp))
WScript.Echo

temp(0) = 1
temp(1) = 1
WScript.Echo (VarType (temp))

WScript.Echo (vbSunday)
WScript.Echo (TypeName (temp))

No comments:

Post a Comment

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | JCpenney Printable Coupons