| 
| 技术资料  > ASP技术 > ASP应用 : 从vbscrpit升级到vb7(一)变量的声明和使用 |  
从vbscrpit升级到vb7(一)变量的声明和使用 March 25,2004 |  
大家都知道asp是用vbscriptm,而其又是vba得子集合(适合office系列产品),而vba又是vb的子集合, 
现在的asp+采用vb为程序语言,而于asp产生了很大的区别. 
(一)变量的声明和使用 
asp+用dim直接声明变量的数据类型 
例如:dim x as string 而在asp中是不允许的 
asp+用dim直接设置初值问题 
例如:dim a as string="我是字符" 而在asp中是不允许的 
asp+用dim声明多个变量时,那么每个变量的数据类型均为相同 
例如:dim x,y as integer 
数值类型的长度 
byte 1 bytes 
short 2 bytes 相当于vbscript的integer 
integer 4 bytes 相当于vbscript的long 
loing 8 bytes  
single 4 bytes 
double 8 bytes 
decimal 12 bytes 这是新增的 
 
         
         |  
 
 | 
  
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved