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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pradeep kumar
Read each line in a loop, campare with required string with
instr and concatenat the whole line
| Is This Answer Correct ? | 0 Yes | 0 No |
How can you save and Get data from Clipboard/ Recordset object consists what?
How to get Cursor position using API?
Types of cursors in RDO.
How would you add column headers in listview control?
Difference between Recordset and Querydef?
2 Answers 3i Infotech, IBM, TCS,
What are the different compatibility types when we create a COM component?
What is shortcut menu and explain "The ole control's shortcut menu".
How do I dial a phone number without using the MSCOMM VBX?
Which tool is used to configure the port range and protocols for DCOM communications?
Which datatypes in Visual Basic are capable of accepting Nulls?
What is the difference between adodc and adodb in vb?
What does the NewIndex property return?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)