Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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)
c=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
("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

Post New Answer

More QTP Interview Questions

What are the different ways to invoke an application using QTP?

0 Answers  


what is difference between calling a function and reusing an action?

1 Answers  


can u tell me website address of VBscript with examples.

2 Answers  


What is creation time property and how does it work?

1 Answers  


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

2 Answers  


what are the environment variables,how do you use them. give an example.

3 Answers   Polaris,


What is the extension for Recovery scenario?

2 Answers  


What are Test case selection criteria for Automation?

2 Answers  


Why is Client side image is preferred over server side image?

0 Answers  


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

2 Answers  


How the automated tests in org

1 Answers   Maintec,


Is it possible to call win runner script in qtp?

0 Answers  


Categories