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 implement an accelerator key for a text box?
What is script control?
How do I call help files from a VB program?
What is snapshot in vb?
What is the difference between change event in normal combobox and dbcombobox?
Explain about form creation in Visual Basic?
To populate a single column value which dbcontrols you to use?
How do I change the color of a form in visual basic?
DHTML Is used for what?
How do you change the system menu (on the Control-Menu Box)?
what are the Default cursor Type and LockEdit type in DAO?
Does VB support pointers to functions?
Is it possible to Manipulate data through flexgrid? Explain.
what are the Types of Resultsets?
How would you attach pictures in column headers of List View Control?