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 you change the icon and otherwise manipulate the DOS box?
which property used to add a menus at runtime?
what is the Property used to add a menus at runtime?
Explain about conditional operators?
How would you attach an ActiveX control in Your Application?
What is the default workspace?
Can you tell me the properties of the controls?
what are the Differences between Recordset and Resultsets?
by writing MACRO CODE,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). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.
What is ODBC Direct and Microsoft Jet Database Engine ?
How would you create Visual basic Document file?
How many ways you can access file using VB?
What are 3 main differences between flexgrid control and dbgrid control?
VB ActiveX: Create a "drivelist"(D1) box, a "folderlistbox"(FLD1) that changes whenever D1 is changed , and a "FilelistBox"(FIL1) that is populated with the file lists under the selected directory in (D1).The file selected is stored in a variable "filename" along with the path. Question: How to use this activeX control in VC++ to get the selected filename?
What is the use of Hyperlink control for DHTML applications?