VBScript
 这个语言是VB程序语言的简化,使其易于学习,且完全以配合网页设计开发为发展重

点,出去安全性顾虑的指令,使开发者安心开发web程序。

第一个
 VBScript程序
<script language="vbs">
 <!--
  msgbox "你好,,,"                        //这里没有分号
 -->
</script>

<script language="vbs">
 <!--
  msgbox "你好,,," //注释
  dim score   '注释  使命变量,也可以不声明
  score = 60
  msgbox "变量的用法"&score
  msgbox "假发运算"&(score+90)
  '数组的声明
  dim box(9)  '数组大小为10
  box(1)=10
  box(1)=10
  msgbox "box1 = "&box(1)
  msgbox "box0 = "&box(0)
  msgbox "box(9)="&box(9)
  'msgbox box(10)  '下标越界错误
  
  'dim score() '定义一个不确定的数组   重复定义错误
  'redim score(10)  '重新定义数组大小
  
  'redim score(5) '可以重新定义数组的大小 原来的数据清空
  'redim preserve score(5)  '可以重新定义数组的大小 原来的数据保留
  msgbox chr(13)&chr(10) 'chr(13)&chr(10)代表一个换行
  msgbox "你\n好"
  msgbox "你"&chr(13)&chr(10)&"好"
 -->
</script>