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
Types of Resultsets.
Is it possible to Manipulate data through flexgrid? Explain.
Write the Steps in Creating an ActiveX Control?
When/Why should I use Option Explicit?
How do I get a bitmap picture in a field in an Access database?
Explain the creation project schedule.
Difference between Recordset and Resultsets.
How can you save and Get data from Clipboard/ Recordset object consists what?
To validate a range of values for a property whenever the property values changes,which type of property procedure you use?
How do I speed up control property access?
How do I call help files from a VB program?
which property of menu cannot be set at run time.
Explain Default cursor Type and LockEdit type in DAO?
What is the latest version of visual basic?
Difference between DDE and OLE.