可以存储在字符串变量中的最大字节数? [英] Maximum bytes that can be stored in a string variable?

查看:105
本文介绍了可以存储在字符串变量中的最大字节数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

访问2K


dim MyStr as string


此变量的最大文本或字节数是多少?
商店?有谁知道?

解决方案

2004年8月10日星期二22:35:29 -0500,Lauren Wilson< ??? @ ??? .COM>写道:


非常大,但在我的测试中奇怪的不可预测。我预计2 ^ 32

- 1,但事实并非如此。


这是我跑的测试代码:

子测试()

Dim s As String

Const EXPONENT As Integer = 28

s = String


< blockquote>(2 ^ EXPONENT - 1,65)

Debug.Print EXPONENT,Len(s)

End Sub


对于EXPONENT大于28的值,我收到了Out Of String

空间错误。不过,至少有2.68亿个字符 - 希望这个足够吗?


-Tom。

访问2K
将MyStr作为字符串调整

此变量可以存储的最大文本或字节数是多少?有谁知道?




Lauren Wilson< ??? @ ??? com>在新闻中写道:hs4jh01gq54kg2nn61pl0u3qdoma2m90qa @

4ax.com:

访问2K
将MyStr作为字符串调暗

此变量可以存储的最大文本或字节数是多少?有谁知道吗?




42


-

Lyle

-

使用iso日期格式:yyyy-mm-dd
http://www.w3.org/QA/Tips/iso-date

-

电子邮件地址不是,但您可以用它来查找。


Access 2K

dim MyStr as string

What is the maximum amount of text or bytes that this variable can
store? Does anyone know?

解决方案

On Tue, 10 Aug 2004 22:35:29 -0500, Lauren Wilson <???@???.com> wrote:

Very large, but in my testing strangely unpredictable. I expected 2^32
- 1, but that was not the case.

Here is the test code I ran:
Sub Test()
Dim s As String
Const EXPONENT As Integer = 28
s = String


(2 ^ EXPONENT - 1, 65)
Debug.Print EXPONENT, Len(s)
End Sub

For values of EXPONENT greater than 28 I received an Out Of String
Space error. Still, at least 268 million characters - hopefully that''s
enough?

-Tom.

Access 2K

dim MyStr as string

What is the maximum amount of text or bytes that this variable can
store? Does anyone know?




Lauren Wilson <???@???.com> wrote in news:hs4jh01gq54kg2nn61pl0u3qdoma2m90qa@
4ax.com:

Access 2K

dim MyStr as string

What is the maximum amount of text or bytes that this variable can
store? Does anyone know?



42

--
Lyle
--
use iso date format: yyyy-mm-dd
http://www.w3.org/QA/Tips/iso-date
--
The e-mail address isn''t, but you could use it to find one.


这篇关于可以存储在字符串变量中的最大字节数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆