Results 1 to 2 of 2

Thread: Text and Arrays

  1. #1

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    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

  2. #2
    Guest
    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.

    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>
    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.

    It would select:

    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>
    Hope you understand better now, thx...

    -Simon Bingier

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width