Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

how can i pass parameters into function?

Answers were Sorted based on User's Feedback

how can i pass parameters into function?..

Answer / venkat

In the above answer (a,b) are the arguments not parameters.
And we called as arguments in functions.

Is This Answer Correct ?    5 Yes 0 No

how can i pass parameters into function?..

Answer / deven

Function MyFunction(Argument1, Argument2)
MyFunction = Argument1 + Argument2
End Function

Is This Answer Correct ?    0 Yes 0 No

how can i pass parameters into function?..

Answer / bluemoon_bala

From the information, i understand that u have written a
function and trying to pass values to that funciton..

Here is an example:
I have created a function called Add and taken two arguments
" a" and "b". And called that function by passing the values
as 2 and 3

Function Add(a,b)
msgbox c
end function

add 2,3

Is This Answer Correct ?    2 Yes 4 No

how can i pass parameters into function?..

Answer / sunil reddy

We will defeinitely pass the parameters to Function

Try with this Example

First parameterize the Agent name with invalid data like sun
Dialog("Login").Einedit("AgentName").Set datatable.Value
Call the function
Function Login(Sunny)
Dialog("Login").Einedit("AgentName").Set datatable.Value
End Function

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More QTP Interview Questions

Explain how Does Run time data (Parameterization) is handled in QTP?

0 Answers  

Can any body explain me how to prepare QTP frame work with an example??

1 Answers  

I am just a beginner in QTP. Could any one explain me in detail how to automate adding two numbers and getting the result in QTP. Also I would like to parameterize the inputs. I have tried but getting an error like 'Can't use sub.....'(can't recollect the exact error)

2 Answers  

Explain the difference between check point and output value?

0 Answers  

How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

0 Answers  

how many test scripts we will write in qtp? very urgent. please??? Thanks in advance..

1 Answers   Mind Tree,

what is the difference between the modular framework and datadriven frame work

0 Answers  

Hi, My application is a web application which was developed by Java. In that application we have applets to do some operations. Is it possible to recognize applets using QTP? If yes, how? pls, help me this

1 Answers  

what is object spy

5 Answers   TCS,

What is the present version of the VB Script we are using

1 Answers  

What is quick test pro?

0 Answers  

How to convert non-reusable action into reusable action in QTP?(i know by default QTP will take it as a non-reuable action )(Chandana) plz urgent?

4 Answers   Wipro,