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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / 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

More VB Script Interview Questions

What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

0 Answers  


What is the difference between vb debugger and the script debugger?

0 Answers  


Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to proceed further that i dont know. Thanks in advance

2 Answers  


Write a program to create a Dynamic array of size 5 elements and display all the elements.

1 Answers  


Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.

1 Answers  


accept a string & display whether a is present or not

1 Answers  


What are class properties?

0 Answers  


What if you do not specify anything when you call a procedure?

0 Answers  


this q asked in applabs, q is: QTP should open google.com page and enter "qtp" in one edit(search) box and click search and should open google.com again and enter "job" in edit(search) box and click on search. I tried this but getting error "Edit(search) box matches more than one object", could anyone this question plz..

1 Answers   AppLabs,


what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com

4 Answers   TCS,


what is diff between static and dynaic arrys?

0 Answers  


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

0 Answers  


Categories