reading lines from a file by searching a word(instr) and
copying to other textfile,but its only copying only one
line but there are some other lines match criteria but not
copying to the files
Answer Posted / senthilg
givenstring=f1.Readall
Do
If InStr(st_pos, givenstring, "<indexTerm>") <> 0 Then
st_pos = InStr(st_pos, givenstring, ""<indexTerm>")
close_pos = InStr(st_pos, givenstring, "</indexTerm>")
find_String = Mid(givenstring, st_pos, (close_pos -
st_pos) + Len("</indexTerm>"))
st_pos=close_pos +1
End If
Loop While InStr(st_pos, givenstring, "<indexTerm>") <> 0
'Start String =<indexTerm>
'End String =</indexTerm>
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How do I access C style strings?
What is ActiveX Document?
What is FireHouse Cursors?
Explain about creating VB applications in excel?
How do I make my applications screen-resolution independent?
what is the control used to call a windows application.
What is the default workspace?
What are the tools in visual basic?
What is the current version of Visual Basic for Windows?
When should we use recursive programming?
Binary Access-method isused to access file in which manner?
Is visual basic easy?
i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI).
Types of DBCombo boxes
Explain Default cursor Type and LockEdit type in DAO?