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


Please Help Members By Posting Answers For Below Questions

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.

1305


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1447


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

1409


To which environments does quicktest professional (qtp) supports?

593


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

625






How to use output values in qtp ?

562


How many types of recording facility are available in quicktest professional?

571


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))

1675


What is the short cut keys for the following?

650


Hi,All How to create a link in excel sheet using qtp

3003


How to start recording using quicktest professional?

612


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

1258


What is file database?

1696


What is the expert view?

557


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?

1636