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
Mention the test steps of qtp.
I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
Why do we use breakpoints in QTP?
What are main panes available in qtp test browser?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
What is RTM (require ment tracebulity marix) fromate?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
To which environments does quicktest professional supports?
Is it possible to split an action? How?
How to create Reusable and Multiple Actions?
How can we conduct U-I Testing by using QTP??????
Explain the new feature of UFT regarding the export of test results?
How to use actions in qtp ?
What are the methods used in UFT to handle exceptions or run-time errors?