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

  • 關於本站
  • 免責聲明