473,320 Members | 1,978 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,320 software developers and data experts.

Long String Error

I'm trying to capture all form elements posted on a page and concatenate
them into a string for testing and to include in an email message. I'm
getting the below error "Out of string space". I thought using the "chr(13)
& chr(10)" characters at the end of each line would fix the issue, but it
doesn't work.

How can I get such a long string concatenated without the below error?

' Code: ***********************************

<%
sRequestForm = "<TABLE><TR><TD><B>Request Form Values</B></TD>" & chr(13)
& chr(10)
sRequestForm = sRequestForm & sRequestForm & "<TD><B>Value</B></TD></TR>"
& chr(13) & chr(10)

For Each s in Request.Form

sRequestForm = sRequestForm & sRequestForm & "<TR><TD>" & name & "</TD>"
& chr(13) & chr(10)
sRequestForm = sRequestForm & sRequestForm & "<TD>" & Request.Form(s) &
"</TD>" & chr(13) & chr(10)
sRequestForm = sRequestForm & sRequestForm & "</TR>" & chr(13) & chr(10)

Next

sRequestForm = sRequestForm & sRequestForm & "</TABLE>"

Response.Write "sRequestForm: " & sRequestForm & "<BR>"
%>
' Error: **********************************
Microsoft VBScript runtime error '800a000e'

Out of string space

/bathroom_wall_sign.asp, line 668

Nov 11 '08 #1
3 4076
http://msdn.microsoft.com/en-us/libr...44(VS.85).aspx


"Scott" <sb*****@mileslumber.comwrote in message news:ez**************@TK2MSFTNGP05.phx.gbl...
I'm trying to capture all form elements posted on a page and concatenate them into a string for testing and to include in an email
message. I'm getting the below error "Out of string space". I thought using the "chr(13) & chr(10)" characters at the end of each
line would fix the issue, but it doesn't work.

How can I get such a long string concatenated without the below error?

' Code: ***********************************

<%
sRequestForm = "<TABLE><TR><TD><B>Request Form Values</B></TD>" & chr(13) & chr(10)
sRequestForm = sRequestForm & sRequestForm & "<TD><B>Value</B></TD></TR>" & chr(13) & chr(10)

For Each s in Request.Form

sRequestForm = sRequestForm & sRequestForm & "<TR><TD>" & name & "</TD>" & chr(13) & chr(10)
sRequestForm = sRequestForm & sRequestForm & "<TD>" & Request.Form(s) & "</TD>" & chr(13) & chr(10)
sRequestForm = sRequestForm & sRequestForm & "</TR>" & chr(13) & chr(10)

Next

sRequestForm = sRequestForm & sRequestForm & "</TABLE>"

Response.Write "sRequestForm: " & sRequestForm & "<BR>"
%>
' Error: **********************************
Microsoft VBScript runtime error '800a000e'

Out of string space

/bathroom_wall_sign.asp, line 668

Nov 11 '08 #2
Scott wrote:
I'm trying to capture all form elements posted on a page and
concatenate them into a string for testing and to include in an email
message. I'm getting the below error "Out of string space". I thought
using the "chr(13) & chr(10)" characters at the end of each line
would fix the issue, but it doesn't work.

How can I get such a long string concatenated without the below error?
Create smaller strings in multiple variables?

--
HTH,
Bob Barrows
Nov 11 '08 #3
"Scott" <sb*****@mileslumber.comwrote in message
news:ez**************@TK2MSFTNGP05.phx.gbl...
I'm trying to capture all form elements posted on a page and concatenate
them into a string for testing and to include in an email message. I'm
getting the below error "Out of string space". I thought using the
"chr(13) & chr(10)" characters at the end of each line would fix the
issue, but it doesn't work.

How can I get such a long string concatenated without the below error?

' Code: ***********************************

<%
sRequestForm = "<TABLE><TR><TD><B>Request Form Values</B></TD>" & chr(13)
& chr(10)
sRequestForm = sRequestForm & sRequestForm & "<TD><B>Value</B></TD></TR>"
& chr(13) & chr(10)

For Each s in Request.Form

sRequestForm = sRequestForm & sRequestForm & "<TR><TD>" & name & "</TD>"
& chr(13) & chr(10)
sRequestForm = sRequestForm & sRequestForm & "<TD>" & Request.Form(s) &
"</TD>" & chr(13) & chr(10)
sRequestForm = sRequestForm & sRequestForm & "</TR>" & chr(13) & chr(10)

Next

sRequestForm = sRequestForm & sRequestForm & "</TABLE>"

Response.Write "sRequestForm: " & sRequestForm & "<BR>"
%>
' Error: **********************************
Microsoft VBScript runtime error '800a000e'

Out of string space

Your main problem is doubling up the sRequestFrom like this:-

sRequestForm = sRequestForm & sRequestForm & "<TD>" & Request.Form(s)

Put this in a loop an sRequest form is growing exponentially, I suspect you
meant this to be:-

sRequestForm = sRequestForm & "<TD>" & Request.Form(s)

Similalry with all other occurances of sRequestForm & sRequestForm you
actually only want one sRequestForm.

BTW, drop call the chr(13) chr(10) marlarky the HTML will render find
without them.

--
Anthony Jones - MVP ASP/ASP.NET

Nov 11 '08 #4

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

Similar topics

3
by: Dave Pylatuk | last post by:
Hello, I am getting the above error when executing a large insert statement against 8.1.7. This insert statement includes a very large string value, about 8000 characters long. Is there a limit...
0
by: Sunil Menon | last post by:
Dear All, Problem: In Oracle database, we have a column of type LONG. We use .Net OLEDb technology for database access. For update we use OleDbParameter . But problem is, if LONG string size...
6
by: I am Sam | last post by:
I keep getting this error and I don't know why: The path is too long after being fully qualified. Make sure path is less than 260 characters. Description: An unhandled exception occurred...
2
by: Seth | last post by:
Ok, here is my setup. I have a fully functioning HTTP Handler implemented. The handler is supposed to handle every single request that comes in to a particular virtual directory. Thus, in IIS, I...
9
by: rsine | last post by:
I have developed a program that sends a command through the serial port to our business system and then reads from the buffer looking for a number. Everything worked great on my WinXP system, but...
2
by: XML newbie: Urgent pls help! | last post by:
Does anyone have a snippet of code that will convert a string to a long array? I've nearly smashed my head against the wall trying to figure this out. I'm Using vb.net 2005 Pls reply asap. I...
0
by: Slawomir Nasiadka | last post by:
Hi, I'am new to this group so I would like to say "Hello" everyone and here is my problem: I'm writing a simple application (code is at the end of this message) witch would list all mails...
5
by: lcw1964 | last post by:
Greetings again, I will burden the group with yet another tenderfoot question, but since conscientious googling hasn't yield a lucid answer I thought I would risk the shortcut of asking here...
7
by: pedagani | last post by:
Dear comp.lang.c++, I'm trying to read a file with very long filename using ifstream. Although, the file exists the file open for read fails. Is there a restriction on the size? I'm using winXP...
73
by: Yevgen Muntyan | last post by:
Hey, I was reading C99 Rationale, and it has the following two QUIET CHANGE paragraphs: 6.5.3.4: "With the introduction of the long long and extended integer types, the sizeof operator may...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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: 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...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.