Aug 29, 2001 #1 cm80 Technical User May 3, 2001 85 US Hi, Is it possible to have the records in a table aligned horizontally rather than vertically? ie Fruit Apple Pear Toy Ball Kite instead of Fruit Toy Apple Ball Pear Kite I am using a dynamic array to populate the table. Thank you
Hi, Is it possible to have the records in a table aligned horizontally rather than vertically? ie Fruit Apple Pear Toy Ball Kite instead of Fruit Toy Apple Ball Pear Kite I am using a dynamic array to populate the table. Thank you
Aug 31, 2001 #2 foxbox Programmer Sep 11, 2000 1,052 NL I presume i would do that by reading the recordset into an array with GetRows.... You want: 1.1 2.1 3.1 1.2 2.2 3.2 instead of 1.1 1.2 2.1 2.2 3.1 3.2 so you nest 2 next loops... br Gerard Upvote 0 Downvote
I presume i would do that by reading the recordset into an array with GetRows.... You want: 1.1 2.1 3.1 1.2 2.2 3.2 instead of 1.1 1.2 2.1 2.2 3.1 3.2 so you nest 2 next loops... br Gerard
Sep 4, 2001 Thread starter #3 cm80 Technical User May 3, 2001 85 US If you get a chance would you mind giving a quick example of the code please, thanks Upvote 0 Downvote
Sep 7, 2001 #4 foxbox Programmer Sep 11, 2000 1,052 NL <%@ Language=VBScript %> <% sql = "SELECT Fruit, Toy FROM TTTEST" Set rs = Server.CreateObject("ADODB.Recordset" rs.ActiveConnection = "DSN=TSNL" rs.Open sql Response.Write "Standard:<br>" do while not rs.EOF Response.Write rs(0) & " " & rs(1) & "<br>" rs.MoveNext loop rs.movefirst arrRS = rs.GetRows Response.Write "<br>Alternative:<br>" for n = 0 to 1 for m = 0 to 1 response.write arrRS(n,m) next Response.Write "<br>" next %> br Gerard Upvote 0 Downvote
<%@ Language=VBScript %> <% sql = "SELECT Fruit, Toy FROM TTTEST" Set rs = Server.CreateObject("ADODB.Recordset" rs.ActiveConnection = "DSN=TSNL" rs.Open sql Response.Write "Standard:<br>" do while not rs.EOF Response.Write rs(0) & " " & rs(1) & "<br>" rs.MoveNext loop rs.movefirst arrRS = rs.GetRows Response.Write "<br>Alternative:<br>" for n = 0 to 1 for m = 0 to 1 response.write arrRS(n,m) next Response.Write "<br>" next %> br Gerard