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 / tarakeshwar

a="CAPGEMINI"
length = len(a)
flag ="G is not present"
For i = 1 to length
res= mid(a,i,1)
if res = "G" then
flag = "G is present"
End if
Next
msgbox flag

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1314


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1525


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1466


What is test object?

694


Explain how you can replace string in qtp?

601






What is the qtp testing process?

594


In qtp, how you can remove the spaces from string?

546


What is system testing and what are the different types of tests you perform in system testing?

595


could any help me please, how to work on visual foxpro application using UFT

1680


How to record application running on the Virtual machine?

636


What the differences are and best practical application of Object Repository?

583


How many types of trigger events are there in qtp?

547


Explain the types of properties that quick test learns while recording?

553


What is the difference between qtp and selenium?

545


What are the different attribute used with regular expression?

531