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 / koteswar
str = "CAPGEMINI"
z= "G "
flag = 0
For i = 1 to len(str)
x = mid(str, i, 1)
If Instr(1,z,x,1) Then
msgbox z
If flag = 0 Then
Reporter.ReportEvent micPass, "The required Letter is
available in the stirng", "True"
else
Reporter.ReportEvent micFail , " The required Letter is
not availabe in the string" , "False"
End If
End IF
Next
Array means It is a collection of similar objects and
enclosed with curly braces. at that time you can use Ubound
for count the no of objects are available in the given array
Srring means single or collection alphanumeric characters
enclosed with quotations. If you want to count the no of
characters in the given string you can use len()
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is RTM (require ment tracebulity marix) fromate?
What is the default object synchronization timeout in qtp?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
How to analyzing test results using quicktest professional?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
What is difference between run time object and test object?
When do go for loop condition in test?
Can we create a qtp test from qc?
How to use reporter.report event in qtp ?
why text area checkpoints cannot used for web applications
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
Explain the benefits of quick test pro(qtp)?
Diff b/w test scenario's and test Procedures?