ReDim是重新定义数组的大小
加上Preserve使数组中已赋值的那些数据不被清空


例如
dim A(3)
A(0)=A(1)=A(2)=A(3)=1
Redim Preserve A(4)   '数组变大了,之前赋值的数据不变
A(4)=2                ‘赋值给A(4)
for i = 0 to 4
   print A(i)
next

相关文章:

  • 2021-09-11
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-11-08
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案