Does a string have a length limit?

C

cyberdude

Hi,

I have some very long strings to be held in some string variables.
May I ask if the string variables have limits in their lengths?
Thanks.

Mike
 
H

Helmut Weber

Hi Mike,

from the online help:

String Data Type


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.

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 

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