Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 15th, 2004, 08:23 AM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic Matrix

Hi

I need to define a name to a matrix which changes dimensions
(ammount of rows and columns)

Please help

Thanx

Reply With Quote
  #2 (permalink)  
Old October 15th, 2004, 09:05 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

To give a correct answer, you should let us know a bit more detail about your requirement. Do you want to create an HTML table with varying rows and columns ?
This code will do it.

<%
    Dim iNumRows
    Dim iNumCols

    'set number of rows and columns
    iNumRows=<number of rows you want for it>
    iNumCols=<number of columns you want>
%>
<table border="1" cellpadding="3" cellspacing="3" align="center" width="100%">
    <%
        Dim iRows
        Dim iCols
        For iRows=1 To iNumRows Step 1
    %>
            <tr>
                <%
                    For iCols=1 To iNumCols Step 1
                %>
                        <td>&nbsp;</td>
                <%
                    Next
                %>
            </tr>
    <%
        Next
    %>
</table>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Columns & Dynamic Grouping ??? nileshgambhava BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 March 24th, 2008 08:58 AM
help writing dynamic form data to dynamic table ublend SQL Server ASP 1 June 1st, 2007 09:09 AM
help writing dynamic form data to dynamic table ublend Classic ASP Professional 1 June 1st, 2007 09:08 AM
Sum of sub-matrix of a matrix Gromlok Java Basics 0 March 4th, 2007 03:45 PM
Dynamic Checkboxes using dynamic Select Values bsheridan Classic ASP Databases 0 March 12th, 2006 10:17 AM



All times are GMT -4. The time now is 05:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.