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 |
How to Start recording using QTP?
In an interview what r the questions asked in qtp related project? pls any answer this question?
QTP9.1 does not support to text checkpoint in Windows application? Is this correct? If this is correct, what is alternative for Text checkpoint?
hi,which is the best book to refer QTP 9.2 and Faq's.
What are the abbreviations for tsr and mtr?
17 Answers Ordain Solutions, TSR,
How to enter table check points?
What are the file extensions for per-action, shared object repository files and what is the extension for library files?
What is an Regular expression doing in VBScript?Tell the pattern for the email verification.
Hi Can u plz suggest who is the Best Faculty for Advanced QTP Scripting in Hyderabad ,plz suggest me..... or send me a replay to satheesh.goli@gmail.com, r make me a call 9866335752
When we try to use test run option "Run from Step", the browser is not launching automatically why?
Can the mode of object repository be change during run time? Eg. if the mode is per-action during design time can i change it to shared and vice-versa? Any scripting possible?
How will you handle application crash using recovery scenario manager(step by step process)?