473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

What logic?

Can you help building it?

Dim Desc(50)
Desc(1) = "Tela1"
Desc(2) = "Tela2"
Desc(3) = "Tela3"
Desc(4) = "Tela4"
....
....
etc

Supose I have a total of 13 records: Desc(13) = "Tela13", how do I list it
below using 4 columns per lines on asp?

<table border="0">
<% Here will be some ForLoop for <tr%>
<tr>
<% Here will be some ForLoop for <td%>
<td>Desc(1)</td><td>Desc(2)</td><td>Desc(3)</td><td>Desc(4)</td>
</tr>
<tr>
<td>Desc(5)</td><td>Desc(6)</td><td>Desc(7)</td><td>Desc(8)</td>
</tr>
... ... ...
</table>

Can you help me on logic/math loop ?

Many thanks
Aug 11 '08 #1
1 1235
Basically, it's

for i = 1 to ubound(desc) step 4
response.write "<tr>"
for j = 0 to 3
response.write "<td>"
if not i+j ubound(desc) then
response.write desc(i + j)
end if
response.write "</td>"
next
response.write "</tr>"
next

Paulo wrote:
Can you help building it?

Dim Desc(50)
Desc(1) = "Tela1"
Desc(2) = "Tela2"
Desc(3) = "Tela3"
Desc(4) = "Tela4"
...
...
etc

Supose I have a total of 13 records: Desc(13) = "Tela13", how do I
list it below using 4 columns per lines on asp?

<table border="0">
<% Here will be some ForLoop for <tr%>
<tr>
<% Here will be some ForLoop for <td%>
<td>Desc(1)</td><td>Desc(2)</td><td>Desc(3)</td><td>Desc(4)</td>
</tr>
<tr>
<td>Desc(5)</td><td>Desc(6)</td><td>Desc(7)</td><td>Desc(8)</td>
</tr>
... ... ...
</table>

Can you help me on logic/math loop ?

Many thanks
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 11 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Hennessy | last post by:
I'm looking for people's opinions and feedback regarding the design of the application tier, and how to best logically separate out the Data Access from the Business Object's. Per the Microsoft...
0
by: news.microsoft.com | last post by:
I have a collection of pages and user controls in a separate project that I compile and use in a sub folder of a all my projects. This is a collection of re-usable modules that I use on every...
3
by: davidw | last post by:
I created my own WebControl, I am thinking a way to put some logics in the class to a seperated class, and it will be accessed by all instances of my WebControl, the idea is that the class doesn;t...
5
by: Claire | last post by:
I've explained the problem in the following code snippet. I want to share single functions for use by several data types. In this function I call different functions to fill out the original object...
3
by: RAJESH | last post by:
I am working with c# and asp.net in developing web applications, iam using ..netframework 1.1 ,i want to know what is the need of 3-tier or 4-tier architecture in our application development.what...
3
by: Ben Becker | last post by:
I am trying to build a custom crosstab type of grid where I take some items in a data grid and based on the content of the current item compared to the previous item, determine if a new row in a...
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
0
by: fiona | last post by:
FOR IMMEDIATE RELEASE Catalyst release low cost logic processing tool 87% of defects in software are errors in logic Yucca Valley, CA, September 2006 - Catalyst Development Corporation,...
23
by: marora | last post by:
I keep hearing about not to use 'go_to' in your code. However, I don't know what's the reasoning behind it? Can any one here shed some light? Thanks in advance, Manish
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.