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
What is the difference in the global and action sheet in qtp?
If created one virtual object? Next time I changed the window position will it work?
What are the different types of qtp test assets and their extensions?
Give the syntax to import/export xls into qtp.
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?
What is the difference between byref and byval in qtp?
Is it possible to call win runner script in qtp?
in my application,validation message has in japanise language.how to validate this message is appears properly or not
How did you resolve conflicts present in Object Repository?
How to delete an object from the object repository?
How can you identify the browser and its information using the qtp script?
what is the structure for the data driven framework
Object repositories types, which and when to use?
What are the different recording modes and how do they work?
i can done the project with QTP in that time i can say how many members in my team size?