Please Example programms on vbscript 1)writing functions
and calling functions

Answer Posted / badri

'writing function


function example()

msgbox "This is example for writing funtion"
end function


'calling the above function--just we write the function name

example()

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you destroy an object in vbscript?

867


What are class variables?

794


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1121


What are the 2 ways in which a variable can be declared in the vbscript language?

787


Which date function is used in the vbscript language to find the difference between the 2 dates?

801


How to create a function in vbscript?

816


Mention what are the rules to name variable in vbscript?

753


How to Enter Values on the Command promt using VB script

1735


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1619


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2705


what is the difference between modular and data and keyword driven framework

1942


How to make sure that items in a wintree are sorted al?

2558


How will you get the exponent of the given number in vbscript?

765


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1788


Explain a few date functions in vbscript

747