logo
  • 教程列表
  • SO官方文檔
  • 陣列和迴圈
    • 1.陣列 - 靜態
    • 2.陣列 - 動態
    • 5.從文字檔案建立陣列
    • 7.對於每個迴圈
    • 6.對於迴圈
    • 8.Do While 迴圈
    • 9. Do Until Loop
    • 3.陣列 - 多維
    • 4.陣列 - 多維 - 動態
  1. StackOverflow 文件
  2. vbscript 教程
  3. 陣列和迴圈
  4. 9. Do Until Loop

9. Do Until Loop

Created: November-22, 2018

Dim copycars(), cars(2), x
Redim copycars(0)
x = 0
cars(0) = "Ford"
cars(1) = "Audi"
cars(2) = "Prius"
Do Until x = ubound(cars)
    copycars(ubound(copycars)) = cars(x)
    redim preserve copycars(ubound(copycars)+1)
    x = x + 1
Loop
redim preserve copycars(ubound(copycars)-1) 'trim off the empty last entry
  • 3.陣列 - 多維
  • 8.Do While 迴圈

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明