new to vbs default max string length?

A

andres

What is the maximum characters you can store in a string object?
I am having problems keeping > 253 characters at a time.

Thanks

Andres
 
H

Helmut Weber

Hi Andres,

from the online-help:

There are two kinds of strings: variable-length and fixed-length
strings.

A variable-length string can contain up to approximately 2 billion
(2^31) characters.

A fixed-length string can contain 1 to approximately 64K (2^16)
characters.

Though I don't understand,
why that should be "approximately".

Arguments of some functions like in Word "range.find", however,
are limited to 256 characters.


--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top