' Basic program to understand VBScript Message Box.
Dim fName 'Declaration
fName="Dinesh " 'Initialisation
lName= "Jangra" 'Declaration and Initialisation
MsgBox fName+LName ' Here lName and LName both reffer to same variable because VB is case insenstive scripting language.
'' We have 6 type of message boxes (0-5)
MsgBox fName+LName,0 ' Ok Button.
MsgBox fName+LName,1 ' Ok,Cancel Buttons.
MsgBox fName+LName,2 ' Abort,Retry,Ignore Buttons.
MsgBox fName+LName,3 ' Yes,No,Cancel Buttons.
MsgBox fName+LName,4 ' Yes,No Buttons.
MsgBox fName+LName,5 ' Retry Cancel.
MsgBox fName+LName,6 ' Ok Button.
Dim fName 'Declaration
fName="Dinesh " 'Initialisation
lName= "Jangra" 'Declaration and Initialisation
MsgBox fName+LName ' Here lName and LName both reffer to same variable because VB is case insenstive scripting language.
'' We have 6 type of message boxes (0-5)
MsgBox fName+LName,0 ' Ok Button.
MsgBox fName+LName,1 ' Ok,Cancel Buttons.
MsgBox fName+LName,2 ' Abort,Retry,Ignore Buttons.
MsgBox fName+LName,3 ' Yes,No,Cancel Buttons.
MsgBox fName+LName,4 ' Yes,No Buttons.
MsgBox fName+LName,5 ' Retry Cancel.
MsgBox fName+LName,6 ' Ok Button.