Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - 255 character limit on strings created in .vbs doesn't exist

Reply
 
Old 06-07-2009   #1 (permalink)
Larry


 
 

255 character limit on strings created in .vbs doesn't exist

Also, I've just realized that strings created in .vbs files are not limited
to 255 characters. I thought that they were. I seem to remember in the past
wanting to create long strings and finding it wasn't possible because of the
255 character limit. Am I imagining that, or has there been a change in the
capability of VB scripting?

Thanks,
Larry


My System SpecsSystem Spec
Old 06-07-2009   #2 (permalink)
MikeB


 
 

Re: 255 character limit on strings created in .vbs doesn't exist


"Larry" <larry328NOSPAM@xxxxxx> wrote in message
news:eTdYs215JHA.1716@xxxxxx
Quote:

> Also, I've just realized that strings created in .vbs files are not
> limited
> to 255 characters. I thought that they were. I seem to remember in the
> past
> wanting to create long strings and finding it wasn't possible because of
> the
> 255 character limit. Am I imagining that, or has there been a change in
> the
> capability of VB scripting?
Imagining.

Quote:

> Thanks,
> Larry
>

My System SpecsSystem Spec
Old 06-07-2009   #3 (permalink)
Pegasus [MVP]


 
 

Re: 255 character limit on strings created in .vbs doesn't exist


"Larry" <larry328NOSPAM@xxxxxx> wrote in message
news:eTdYs215JHA.1716@xxxxxx
Quote:

> Also, I've just realized that strings created in .vbs files are not
> limited
> to 255 characters. I thought that they were. I seem to remember in the
> past
> wanting to create long strings and finding it wasn't possible because of
> the
> 255 character limit. Am I imagining that, or has there been a change in
> the
> capability of VB scripting?
>
> Thanks,
> Larry
You're thinking of Turbo Pascal.


My System SpecsSystem Spec
Old 06-07-2009   #4 (permalink)
T Lavedas


 
 

Re: 255 character limit on strings created in .vbs doesn't exist

On Jun 7, 10:16*am, "Pegasus [MVP]" <n...@xxxxxx> wrote:
Quote:

> "Larry" <larry328NOS...@xxxxxx> wrote in message
>
> news:eTdYs215JHA.1716@xxxxxx
>
Quote:

> > Also, I've just realized that strings created in .vbs files are not
> > limited
> > to 255 characters. I thought that they were. I seem to remember in the
> > past
> > wanting to create long strings and finding it wasn't possible because of
> > the
> > 255 character limit. *Am I imagining that, or has there been a changein
> > the
> > capability of VB scripting?
>
Quote:

> > Thanks,
> > Larry
>
> You're thinking of Turbo Pascal.
I believe the very early Basics, including QBasic were limited to 255
character strings.

Also, VBScript still limits strings to 1024 characters in MsgBox
displays. The WSH ECHO is not limited (except by what can be seen on
the screen).

Tom Lavedas
***********
My System SpecsSystem Spec
Old 06-08-2009   #5 (permalink)
Paul Randall


 
 

Re: 255 character limit on strings created in .vbs doesn't exist


"T Lavedas" <tglbatch@xxxxxx> wrote in message
news:3f9824e2-859a-47c5-9388-6ddc44361d00@xxxxxx
On Jun 7, 10:16 am, "Pegasus [MVP]" <n...@xxxxxx> wrote:
Quote:

> "Larry" <larry328NOS...@xxxxxx> wrote in message
>
> news:eTdYs215JHA.1716@xxxxxx
>
Quote:

> > Also, I've just realized that strings created in .vbs files are not
> > limited
> > to 255 characters. I thought that they were. I seem to remember in the
> > past
> > wanting to create long strings and finding it wasn't possible because of
> > the
> > 255 character limit. Am I imagining that, or has there been a change in
> > the
> > capability of VB scripting?
>
Quote:

> > Thanks,
> > Larry
>
> You're thinking of Turbo Pascal.
I believe the very early Basics, including QBasic were limited to 255
character strings.

Also, VBScript still limits strings to 1024 characters in MsgBox
displays. The WSH ECHO is not limited (except by what can be seen on
the screen).
----------------
I think VBScript's message box is the limitation; it limits the display to
the shorter of:
1) the first 1024 characters of a string or
2) the beginning of a string up to the first Chr(0) character.

-Paul Randall


My System SpecsSystem Spec
Old 06-09-2009   #6 (permalink)
Larry


 
 

Re: 255 character limit on strings created in .vbs doesn't exist

> Also, VBScript still limits strings to 1024 characters in MsgBox
Quote:

> displays. The WSH ECHO is not limited (except by what can be seen on
> the screen).
> ----------------
> I think VBScript's message box is the limitation; it limits the display to
> the shorter of:
> 1) the first 1024 characters of a string or
> 2) the beginning of a string up to the first Chr(0) character.

Thanks. That may explain what I was under the impressiono that the maximum
length of strings was very limited.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
non expandable here strings PowerShell
How to extract sub-strings? VB Script
question regarding strings PowerShell
Files created by Powershell are over 2X bigger than files created bytext editor or cmd.exe. PowerShell
Why still a 260 character path limit ? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46