Discussion Locked

Adding data to HTML table.

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

1) My VB program extracts information from backup text logs and puts info into a web page, created by my VB program.
I need to add data to tables, extending the rows.
How do I do it?
2) First of all, I need to open the HTML file for input/output.Options available (input, output, binary or random) do not want to do both.
How do I do it?
Thanks.
Alex.

9 replies

by x10nd

when you load the html page you will read simultaneously from the logs and put the end loop at the end of the last row that will truncate to the next row.

by fernstar

Instead of dynamically changing the HTML file perhaps you could try creating a '.ASP' page.
If you import the backup text logs into a microsoft access database on a regular basis, you can then write your'.ASP' page to reference the access database which will then dynamically loop through the records in the table and append rows as necessary.

by ablokh

Thanks to all who suggested solutions to my question.
Here is my own solution:
- Open taxt file (containing backup results) for
input.
- If monthly backup summary (.htm) file exists,
rename it as temp.htm and open for input.
- Open monthly basckup summary (.htm) file as
output (blank).
- Read temp.htm line by line, and write backup
summary file line by line.
Whenever data has to be added, add it and
continue to read temp.htm and writing output,
until end of temp.htm .

This is a cumbersome process, the problem being that you cannot open file for input-output in VB.
Well, you could open file for input-output even in COBOL!

This discussion is closed to new replies.