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 / gabbar
Dim a
a=array("CAPGEMINI" )
If len(join(a))<>len(Replace(join(a),"G","")) Then
msgbox "Occurance of G in array: "&len(join(a))-len(Replace(join(a),"G",""))
End If
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
images are dynamically changes how to compare two images with out using the bitmap
when u script reveiwing in which area u more concentrates?
What is debugging? How you debug your script?
Give me some real time point of way where exactly we can conduct audits?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
What is throw object?
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 disable the pop ups through QTP using a script
Explain different checkpoints in qtp.
Explain the concept of object repository?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What are the technologies supported by qtp?
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
How do you create regression test packs?