Please Example programms on vbscript 1)writing functions
and calling functions
Answers were Sorted based on User's Feedback
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 |
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 |
To get data from table which method will be used in QTP
write a program to display the system specifications of client system with the help of vbScript.
input values to accept 2 numbers & print the product, difference and sum using switch case
how to genarate a random numbers in vb?
How to copy from one script to another script in qtp
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
how to declare a variable in vbscript using vbscript
write a vb script to generate hello 5 times using do until loop
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
How can you create a file object to work with the files in the vbscript language?
What is the difference between vb debugger and the script debugger?
How will you get the smallest subscript of an array in vbscript?