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 can Visual Basic be used for server-side scripting?
What is "NULL"?
Can you tell me the properties of the controls?
How would you run your ActiveX Document Dll?
What are the scope of the class?
What are forms in visual basic?
What is rdo in vb?
State about the different types of visual basic data?
Explain the usage of Web Browser Control?
____ property is used to lock a textbox to enter a datas.
What are the new events in textbox that has been included in VB ?
What is the use of Scalewidth and ScaleHeight Proeperty?
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).
how to use unicode data in vb6 regarding to telugu language, my output is in only telugu language
Explain the types of Views in Listview Control.