开发者

vba: multi-dimensional arrays REDIM

开发者 https://www.devze.com 2023-01-09 03:14 出处:网络
i have an array: Dim qcNo(4, 2, 350) As String the problem i have is that sometimes there is a requirement for the matrix to be bigger. i need the 350 to sometimes go to 1000.

i have an array:

Dim qcNo(4, 2, 350) As String

the problem i have is that sometimes there is a requirement for the matrix to be bigger. i need the 350 to sometimes go to 1000.

is it possible to do a redim preserve on a 3 dimensiona开发者_JS百科l array?

if so, how would i do it?


Preserve will maintain the existing values.

Dim qcNo() As String

Redim qcNo(4,2,350) as string


Redim Preserve qcNo(4, 2, 1000) as string
0

精彩评论

暂无评论...
验证码 换一张
取 消