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 to make arguments optional in a function?

Answer Posted / ramchandra patil

Hi Narendra,

Good question!

See basically QTP does not support optional arguments but u
can achieve this with following ways-

1. You can pass NULL or Empty values
2. By using dictionary object


I am agree with Subbu...
@Meenu we use optional in front of statement if we wanted
to execute the statement at some criteria..we never use
Optional keyword while passing arguments to function...n I
think narendras question is related to function...

hey guys let me know if I am wrong with valid solution and
please do post if u know any other way..


Thanks in Advance..

Ramchandra
9699851282

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference in the global and action sheet in qtp?

1023


If created one virtual object? Next time I changed the window position will it work?

1041


What are the different types of qtp test assets and their extensions?

1175


Give the syntax to import/export xls into qtp.

1050


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

1120


What is the difference between byref and byval in qtp?

1105


Is it possible to call win runner script in qtp?

1078


in my application,validation message has in japanise language.how to validate this message is appears properly or not

2057


How did you resolve conflicts present in Object Repository?

2127


How to delete an object from the object repository?

1112


How can you identify the browser and its information using the qtp script?

1001


what is the structure for the data driven framework

2006


Object repositories types, which and when to use?

1075


What are the different recording modes and how do they work?

1087


i can done the project with QTP in that time i can say how many members in my team size?

1920