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

Answer Posted / cil testing team(jaipalreddy)

Public function login(x,y)
'record or write descriptive script for repeatable
operation
here xand y are arguements
End Function
'save this function in function library or copy them in
notepad or wordpad and save them with .vbs exension

While calling this function in test
call like this in test
login "Mercury","mercury"
then steps->1.File menu->settings->Resources Tab ->here
click + mark to Browse the path
->Click apply->Click Ok

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the largest subscript of an array in vbscript?

605


What are string functions in vbscript?

656


Explain about .wsf files?

622


How to Enter Values on the Command promt using VB script

1534


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

551






Explain some uses of vb script?

553


what is the differance between BYVAL,BYREF?

1770


Out of the different type of operators, which are evaluated first and last in the vbscript language?

565


Which operator can be used to do an xor operation in vbscript?

680


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1805


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1339


What is difference between vbscript and vba?

612


Mention what if you do not specify anything when you call a procedure?

572


Mention what are the rules to name variable in vbscript?

540


What are the differences between sub procedures and function procedures?

520