how can i pass parameters into function?
Answers were Sorted based on User's Feedback
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 |
Answer / deven
Function MyFunction(Argument1, Argument2)
MyFunction = Argument1 + Argument2
End Function
| Is This Answer Correct ? | 0 Yes | 0 No |
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)
c=a+b
msgbox c
end function
add 2,3
| Is This Answer Correct ? | 2 Yes | 4 No |
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
("Agent")
Call the function
Function Login(Sunny)
Dialog("Login").Einedit("AgentName").Set datatable.Value
("Agent1")
End Function
| Is This Answer Correct ? | 0 Yes | 4 No |
What are the different ways to invoke an application using QTP?
what is difference between calling a function and reusing an action?
can u tell me website address of VBscript with examples.
What is creation time property and how does it work?
in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do
what are the environment variables,how do you use them. give an example.
What is the extension for Recovery scenario?
What are Test case selection criteria for Automation?
Why is Client side image is preferred over server side image?
hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji
How the automated tests in org
Is it possible to call win runner script in qtp?