i have an array CAPGEMINI .....Here i need to check whether
G is there or not ..how to do that
and friends i have one big doubt that is
whether it is array or string ,how we come to know that and
where we consider that it's array ,where we consider that
it's an string
because when i want to find the length i have big doubt
whether we need to use len function or ubound ...
ans me for this TWO Questions any one please
Answer Posted / udayakiran
This might be the solution If we consider it as array:
ar2 = Array("C","A","P","G","E","M","I","N","I")
arlen=UBound(ar2)-lbound(ar2)+1 'Finding array length
For p= 0 to arlen-1
If strcomp(ar2(p),"G")=0 Then
msgbox "The letter G is found"
Exit For
End If
Next
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know
To which environments does quicktest professional (qtp) supports?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
How to use output values in qtp ?
How many types of recording facility are available in quicktest professional?
How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))
What is the short cut keys for the following?
Hi,All How to create a link in excel sheet using qtp
How to start recording using quicktest professional?
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
What is file database?
What is the expert view?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?