Ask a Question related to ASP, Design and Development.
-
Ray at #1
Re: Dumping an entire array to the screen
for iCounter = 0 to ubound(TheArray)
response.write TheArray(iCounter) & "<br />"
next
Ray at work
"Jacob" <yak2016@comcast.net> wrote in message
news:e$Qx4UKRDHA.2344@TK2MSFTNGP12.phx.gbl...or> Is there a way I can dump all the contents of an array to the browser for
> viewing. I'm using rs.GetRows to create the array, but my functions are
> only processing the first three records in what should be a 9 record set.
> So I'd like to dump the array to find out if it is a bad select statement> bad processing of the array itself by my functions.
>
> Thanks, Jacob
>
>
Ray at Guest
-
dumping the schema ?
hi, how can I dump the db schema so that I can recrate the DB later ? tia ---------------------------(end of... -
dumping database
sorry in addition to my last question, does anyone know if it's possible for a web service/site to "dump" out a snapshot of a subset of a... -
column dumping
Hi, is there a smart command line ( Unix ) utility to dump out a particular column to the STDOUT/file from a file containing multi column data ?... -
can list() in while loop, while printing things to a screen, somehow affect the values in an array?
lawrence wrote: <snip> I'm not going to spend all my time analyzing this, as you obviously have multiple other functions and objects not... -
Passing an entire array in PHP
Hi, I saw a previous post about sending arrays but did not quite understand the answers. The problem is that I would like to pass an entire... -
Dave Anderson #2
Re: Dumping an entire array to the screen
"Jacob" wrote:
or>
> Is there a way I can dump all the contents of an array to the browser for
> viewing. I'm using rs.GetRows to create the array, but my functions are
> only processing the first three records in what should be a 9 record set.
> So I'd like to dump the array to find out if it is a bad select statementassuming { a = rs.GetRows() }...> bad processing of the array itself by my functions.
JScript:
Response.Write(a.join("<BR>"))
VBScript:
Response.Write Join(a,"<BR>")
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Dave Anderson Guest
-
Ray at #3
Re: Dumping an entire array to the screen
That was pretty clever.
Ray at work
"Dave Anderson" <GTSPXOESSGOQ@spammotel.com> wrote in message
news:%23M4mViKRDHA.2320@TK2MSFTNGP12.phx.gbl...for> "Jacob" wrote:> >
> > Is there a way I can dump all the contents of an array to the browserset.> > viewing. I'm using rs.GetRows to create the array, but my functions are
> > only processing the first three records in what should be a 9 recordstatement> > So I'd like to dump the array to find out if it is a bad selectUse> or>> > bad processing of the array itself by my functions.
> assuming { a = rs.GetRows() }...
>
> JScript:
> Response.Write(a.join("<BR>"))
>
> VBScript:
> Response.Write Join(a,"<BR>")
>
>
> --
> Dave Anderson
>
> Unsolicited commercial email will be read at a cost of $500 per message.contact> of this email address implies consent to these terms. Please do not> me directly or ask me to contact you directly for assistance. If your
> question is worth asking, it's worth posting.
>
>
Ray at Guest
-
Dave Anderson #4
Re: Dumping an entire array to the screen
I wrote:
[Correction]>
> JScript:
> Response.Write(a.join("<BR>"))
Since GetRows returns a SafeArray, JScript needs a little bit of tweaking.
This will simply dump the array with a line break between elements:
Response.Write(new VBArray(rs.GetRows()).toArray().join("<BR>"))
Unfortunately, the 2D nature of the array is lost, so if you want a line per
record, use rs.GetString():
Response.Write(RS.GetString(2,100,",","<BR>","null "))
Come to think of it, that's a better way for VBScript as well.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Dave Anderson Guest



Reply With Quote

