Extract a word from a sentenece?

Answers were Sorted based on User's Feedback



Extract a word from a sentenece?..

Answer / rajaram_patil

'Use the code below

varStr = "This is a sentence"

MyArray = Split(varStr," ")

i = ubound(MyArray)

For j=0 to i step 1
msgbox MyArray(j)
Next

Is This Answer Correct ?    15 Yes 3 No

Extract a word from a sentenece?..

Answer / rajasi patil

strValue = "This is my World"
searchWord = "my"

arrWord = Split(strValue," ")

For iCount = 0 to UBound(arrWord)
If strComp(arrWord(iCount),searchWord,1) = 0 Then
Reporter.ReportEvent micPass, "Word
Found "&searchWord, "At Position "&iCount
Exit For
End If
Next

Is This Answer Correct ?    5 Yes 0 No

Extract a word from a sentenece?..

Answer / kapil gupta

hi all
check this

varStr = "I wanted to remove one word from the sentence"
'i am trying to remove "word" from the above sent..
MyArray = Split(varStr," word ")

i = ubound(MyArray)

MyString = join(MyArray)
msgbox MysSring

Contact me on kapilet05@gmail.com if you need more info..

Is This Answer Correct ?    3 Yes 0 No

Extract a word from a sentenece?..

Answer / neeraj kumar

Hi friends!

I would like to help you,

This example can help you

Dim Str, Str2
Str="Automate your business processes & be more"
Str2=Mid(Str, 9, 5)
msgbox Str2

Is This Answer Correct ?    6 Yes 4 No

Extract a word from a sentenece?..

Answer / neeraj kumar

Hi friends!

I would like to help you,

This example can help you

Dim Str, Str2
Str="Automate your business processes & be more"
Str2=Mid(Str, 9, 5)
msgbox Str2

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More QTP Interview Questions

wt is frame work wt r d different types of frame works used in ur company

1 Answers   Infotech,


How u will open the build automatically in QTP except using Systemutil.run command

6 Answers  


how do check the links in a webpage ?

7 Answers   Accenture, Wipro,


i have to prepare qtp certification course. so, please send me qtp tutorial notes.

1 Answers  


what is the defference between QTP 8.2 and 9.0and 9.2? plz tell me

6 Answers  






How to handle the exceptions using recovery secnario manager in Qtp?

2 Answers  


How we can add objects to the object repository during the running?is it possible or not?explain

3 Answers  


We developed 100 descriptive programms and put in running, in the midle if any descriptive program is stucked with some error? what will happend weather it will execute the remaining prg's or it will terriminate ?

6 Answers   Kanbay,


What is BPT?

2 Answers   Allied Group,


After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  


Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible

1 Answers   IBM, INCA,


how can i impliment error handling in QTP?

5 Answers   Ordain Solutions,


Categories