hi,
i was adding the two numbers in qtp scripts but i didn't get
the answer. see my below script, i dont know wht is the problem.
i passed the value a=3 b= 2, i got the ans 32 instead of 5.
i thing the problem is to be c = a+b
my mail id karthis4u@gmail.com
Dim a, b, c
a = inputbox("enter the a ")
b = inputbox("enter the b ")
c = a + b
print c
Answer Posted / kavi
Hi,
prasad's code was right.. but we should pass values for the
function sum
dim a,b,c
function sum(a,b)
c=a+b
msgbox c
end function
x=sum(3,2)
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
what is the difference btn risks & Therads in the Test plan documentation?
When to use shared and local object repository?
How can you send user defined messages to test report?
What are some test assets and related extensions of qtp?
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
Hi Samrat, Thank u very much, what u said it is right.
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
Describe function procedure in vbscript.
what is the frame work in J-meter?
Define object spy ?
Explain advantages and disadvantages of ddf?
what QTP Options do you know?
What is data driver in qtp?
What is the basic concept of qtp?