Search This Blog

Thursday 27 October 2011

Variables in VBScript


Varabiles in VBScript:

          Variables is a storage, to store any type of value called as “variant”.Due to this reason variables declaration is optional.

                                                X=10
                                                X=”kishore”
                                                X=123.54
Here no end with parameters.

            In above example code X variable allowed integer, string and float. In vbscript variable declaration is optional. But to prevent typing mistakes in variable names, we can declare like shown below.

                                                Ex:- optional explicit
                                                            Dim x,y,z
                                                            x=10
                                                            y=25
                                                            z=x*y
                                                            Msgbox(z)

No comments:

Post a Comment