i have string "I LIKE INDIA"..how to i get LIKE from the
sting..

Answers were Sorted based on User's Feedback



i have string "I LIKE INDIA"..how to i get LIKE from the sting....

Answer / kk reddy

str="I LIKE INDIA"

var=mid(str,3,4)

msgbox var

Is This Answer Correct ?    17 Yes 2 No

i have string "I LIKE INDIA"..how to i get LIKE from the sting....

Answer / ramana vanteru

I want to add some more info to KK's ans, we can use

Mid Function

Returns a specified number of characters from a string.

Mid(string, start[, length])
Arguments

str="I LIKE INDIA"

var=mid(str,3,4)

msgbox var

Is This Answer Correct ?    7 Yes 0 No

i have string "I LIKE INDIA"..how to i get LIKE from the sting....

Answer / tanuj mohanty

str="I LIKE INDIA"
x=split(str," ")
print x(1)

Is This Answer Correct ?    5 Yes 0 No

i have string "I LIKE INDIA"..how to i get LIKE from the sting....

Answer / rajendra nethala

str="I LIKE INDIA"

str=Split(1,str," ")

MsgBox Str(1)

Is This Answer Correct ?    7 Yes 3 No

i have string "I LIKE INDIA"..how to i get LIKE from the sting....

Answer / lakshmi

Mid Function we have to use here

U must take care of spaces also

so,Mid(str,3,4)

3-> starting position
4-> length

Is This Answer Correct ?    3 Yes 0 No

i have string "I LIKE INDIA"..how to i get LIKE from the sting....

Answer / mahesh

can any body send me code for this question

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

The hybrid framework can be implemented for any application. Is it true?

0 Answers  


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

0 Answers  


How to get the column count and column name from the resultset in the database connection program?

6 Answers  


Is it mandatory to know abt regular expression in descriptive programming

2 Answers  


IF there are seven browsers with same name open. I want to close one particular browser thru QTP. how can i do this?

3 Answers   Polaris,






what is command for executing files?

0 Answers   VSoft,


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

0 Answers  


Could any one explain about the nested actions in QTP? This question is asked by Qualitree and CA

3 Answers   CA, Qualtree Solutions,


Explain quicktest professional (qtp) testing process?

0 Answers  


Please can you give where can we get good QTP Training at Hi-Tech city Hyderabad?

10 Answers  


How to data driven test for Win objects in QTP ?

0 Answers  


What are the advantages of QTP over WinRunner?

5 Answers   CTS,


Categories