logo
  • 教程列表
  • SO官方文档
  • 数组和循环
    • 1.阵列 - 静态
    • 2.数组 - 动态
    • 5.从文本文件创建数组
    • 7.对于每个循环
    • 6.对于循环
    • 8.Do While 循环
    • 9. Do Until Loop
    • 3.数组 - 多维
    • 4.数组 - 多维 - 动态
  1. StackOverflow 文档
  2. vbscript 教程
  3. 数组和循环
  4. 2.数组 - 动态

2.数组 - 动态

Created: November-22, 2018

Dim cars()
Redim cars(0) 'Give it 1 entry
Dim tmp
tmp = "Ford"

'ubound(arrayvariable) is the count of array size.
'in this case, it would be 1, since there is 1 entry. 
cars(ubound(cars)) = tmp 'cars(0)
Redim preserve cars(ubound(cars)+1)
  • 5.从文本文件创建数组
  • 1.阵列 - 静态

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明