Not sure what u talking about.. but.. hmm you would have to edit the registry for the html extension.. put ur program in so that ur program starts up when a html is opened..then seach and edit the html just like a text file....
hope that helps
Printable View
Not sure what u talking about.. but.. hmm you would have to edit the registry for the html extension.. put ur program in so that ur program starts up when a html is opened..then seach and edit the html just like a text file....
hope that helps
Yeah, I know that, but I basically want the program to open the HTML file and search for a cell in a table, and count how many of those cells there are.
For example, it would open an HTML file that has this code in it (and other code too). The application would search through the text, find every statement that starts with "<TD bgcolor="#006699"><FONT size="-1" color="#990000">" and ends with "</TD>" and that would be put into an array, and the array would be put into a listbox. If the user clicked on the 2nd item in the listbox, then it would go to the 2nd array, and select the text in the 2nd table so that the user can edit it via a textbox without actually touching the code.Code:<TBODY>
<TR>
<TD bgcolor="#006699" width="30%"><FONT size="-1" color="#990000">98/0*/** New!</FONT></TD>
<TD bgcolor="#99CCFF" align="center"><FONT size="-1" color="#990000">NEWS</FONT></TD>
</TR>
<TR>
<TD bgcolor="#006699"><FONT size="-1" color="#990000">98/0*/** New!</FONT></TD>
<TD bgcolor="#99CCFF" align="center"><FONT color="#990000">NEWS</FONT></TD>
</TR>
<TR>
<TD bgcolor="#006699"><FONT size="-1" color="#990000">98/0*/** New!</FONT></TD>
<TD bgcolor="#99CCFF" align="center"><FONT size="-1" color="#990000">New Houses For Sale in X Area</FONT></TD>
</TR>
<TR>
<TD bgcolor="#006699"><FONT size="-1" color="#990000">98/0*/** New!</FONT></TD>
<TD bgcolor="#99CCFF" align="center"><FONT size="-1" color="#990000">NEWS</FONT></TD>
</TR>
<TR>
<TD bgcolor="#006699"><FONT size="-1" color="#990000">98/0*/** New!</FONT></TD>
<TD bgcolor="#99CCFF" align="center"><FONT size="-1" color="#990000">NEWS</FONT></TD>
</TR>
<TR>
It would select:
Hope you understand better now, thx...Code:<TD bgcolor="#006699"><FONT size="-1" color="#990000">98/0*/** New!</FONT></TD>
<TD bgcolor="#99CCFF" align="center"><FONT size="-1" color="#990000">New Houses For Sale in X Area</FONT></TD>
-Simon Bingier