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
What is ActiveX Dll and ActiveX Exe?
How do I call a DLL?
Explain the usage of Web Browser Control?
How should dates be implemented so they work with other language and country formats?
Is a foo VBX/DLL available as shareware/freeware?
Explain about the creation of EXE files with Visual Basic?
Is there any way to pass a variable to a form apart from using global variables?
Types of DBCombo boxes
Is visual basic case sensitive?
How do I implement an accelerator key for a text box?
Which property of textbox cannot be changed at runtime. What is the max size of textbox?
What are the types of line styles available in Treeview Control?
How can you Navigate from the DHTML application to another DHTML application? .
Explain Types of DBCombo boxes?
How would you create properties by using class Builder Wizard?