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

What is the BPT(bussiness process testing ).and what is the main difference between BPT and QTP

3 Answers   EDS, GL Noble Denton, IIST,


I used Child objects to get the count of the no of weblist present in the page.now i need to select the item in the weblist..Please send me full code

1 Answers  


how to identify an object which is not in the object repository identification can be done using descriptive programming.

2 Answers  


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

0 Answers   Altair,


How to capture dynamic objects in qtp like mark up text

3 Answers  






For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

0 Answers  


I am having trouble understanding #1 how to paramaterize a userid and password that I need to call in about 25 existing scripts. I need to know how to Create a Reuseable action for 25 existing scripts that will call the exact same userid and password? I need to know how to create a Reuseable action and then have it called by existing scripts being run in a batch.

2 Answers  


what is the default ordinal identifier.what are the send keys in qTP.

1 Answers  


How does QTP identify an object?

0 Answers  


I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

0 Answers  


How can I import environment from a file on disk?

0 Answers  


What is meant by Step Generator in Qtp How is it used? pls gimme in detail

7 Answers   AppLabs,


Categories