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

There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me

2 Answers   Livetek,


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

0 Answers  


hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.

3 Answers  


How many tabs are available to view your test in a test pane and what are they?

0 Answers  


How u perform exception handling in QTp,what is other name for ths?

2 Answers  






can any body help me out by providing links/material for descriptive programming in QTP otherwise can you post decriptive programing based interview Questetion&ans. plz help me out . i need it.

1 Answers   ADP,


where u maintain qtp scripts in ur company

4 Answers   HCL,


how to associate object repository during runtime in qtp

1 Answers   Deloitte,


How to take screen shot of desktop by using vb script code or is there any method?

1 Answers  


whow much strong on VB and C?

0 Answers   UHG,


What is InStr()

6 Answers   Kanbay,


How to identify flash application when the qtp is not identifying the flash application objects.

2 Answers  


Categories