Extract a word from a sentenece?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
what is L-trim function will do?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
How to create a standard checkpoint ?
explain abt dyanamic changing object with example?
Can we put more than one action in a single script???? yes or no.....
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?
How to find a window is minimized or not
keyword driven framework having how many folders? explain folders in detail?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
How do we do DOM programming in QTP.Could you explain with an example. If possible please provide some material or link related to DOM Programming.
How to use actions in qtp ?
how will b the questions if we keep one QTP project in CV.please tell me iam attending an interview.