Hi all..I have two values. a=20 ,b=30
I want to perform c= a+b and c= a*b using user define
function.please anyone give the answer
Answer Posted / prathyusha
Res=Add (20,30)
msgbox Res
Function Add (a,b)
c=a+b
Add=c
End Function
Res1= Mul (20,30)
msgbox Res1
Function Mul (a,b)
c=a*b
Mul=c
End Function
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
1. How do declare public variable in vb scripts?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
Mention when to use function procedures and what are its characteristics?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
How to add actions in driver script to run those actions in QTP?
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
after medical test,when will be the police verification
How to capture a runtime error in vbscript?
how does vb script help in web page designing? explain with example.
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
What is the scope of a constant declared using public?
Explain about the functionality of vb script?