| || |
Dynamic number of tables - window declarations??
I have a web application to test in which the number of tables in a given page may change. There can be only one HTMLTable, or there can be 2 to 20 tables. It depends on how many entities there are in the database at the time the page is generated. The number of columns and rows is predetermined, but itís the number of possible table in the page my problem. I usually like to create my windows declaration first and use those in my scripts (in general, my pages are not too much dynamic - they stay pretty much the same). But here, how do I support these multiple tables in my windows declarations??
Re: Dynamic number of tables - window declarations??
You can have more objects in your window declarations than you actually have in your application. So, you could have 100 tables in your window declarations. Just do an Exists before attempting to act on numbers 2 through 100.
I do this quite often, putting all possible objects into the window declarations. This code may help:
A concerned Borland customer, a fly in the ointment, a wrench in the works.