> VB语言在线手册 > 创建数组
<!DOCTYPE HTML>
<html>
<body>

<script type="text/vbscript">
Dim famname(5)
famname(0)="Jan Egil"
famname(1)="Tove"
famname(2)="Hege"
famname(3)="Stale"
famname(4)="Kai Jim"
famname(5)="Borge"
For i=0 To 5
  document.write(famname(i) & "<br>")
Next
</script>

</body>
</html>