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

maximum characters for string data type

JT
i don't know why i can't find this anywhere but -

what is the maximum number of characters that a string variable can hold - i
initially thought it was 256, but after some testing it seems that it can
hold much more than that..

tia
Jul 19 '05 #1
2 5880
vbScript uses variants for all variables. For strings a variant points to a
Win32 BSTR which can have 2*31 characters.

I don't know about JScript but I presume it also uses variants and would
have similar behavior.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"JT" <jt@nospam.com> wrote in message
news:O4**************@TK2MSFTNGP12.phx.gbl...
i don't know why i can't find this anywhere but -

what is the maximum number of characters that a string variable can hold - i initially thought it was 256, but after some testing it seems that it can
hold much more than that..

tia

Jul 19 '05 #2
Let us know if you reach the limit. You will probably experience server
slowdown / memory chaos long before you have a string big enough to hit an
actual limit. You will probably get a response buffer limit exceeded error,
maybe?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JT" <jt@nospam.com> wrote in message
news:O4**************@TK2MSFTNGP12.phx.gbl...
i don't know why i can't find this anywhere but -

what is the maximum number of characters that a string variable can hold - i initially thought it was 256, but after some testing it seems that it can
hold much more than that..

tia

Jul 19 '05 #3

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

Similar topics

4
by: Lobang Trader | last post by:
Hi all, I am trying to create a username and a password class. I would like to know what are the RECOMMENDED minimum and maximum length for both fields? These fields will be something like...
1
by: qa4ever | last post by:
How long in number of characters can a XML attribute be maximum? E.g. <mystring>how many characters maximum can be here</mystring> If you answer something like; it can be as long as UTF-8 . Then...
8
by: Hal Vaughan | last post by:
Is there a maximum length for Javascript program lines? What about strings? Is there a limit on string length? I found some references that said the maximum string length was 256 characters,...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
15
by: Lauren Wilson | last post by:
Access 2K dim MyStr as string What is the maximum amount of text or bytes that this variable can store? Does anyone know?
6
by: Christian Gröbner [MVP] | last post by:
Hello Friends, I'm currently sitting here and don't know how to fix this problem. I've written a webapplication where you can fill out several forms. For each form I have created a website where...
2
by: brian.lukoff | last post by:
What is the maximum size of POST data? A page on the ASP FAQ web site (http://classicasp.aspfaq.com/forms/what-is-the-limit-on-form/post-parameters.html) is confusing me: "While GET is limited...
1
by: hn.ft.pris | last post by:
"Forward maximum match" mean that there is a dictionary contains thousands of items which are single words. For example, "kid", "nice", "best"... And here get a string "kidnicebs", the forward...
11
by: =?Utf-8?B?VmxhZCBIcnlib2s=?= | last post by:
Using IIS7, Vista x64, ASP.NET 2.0. I am getting HTTP 400 "Bad Request" for the following URL:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.