日期:2010-08-06  浏览次数:21444 次

   实例: <%=FormatCurrency(34.3456)%> 
   
  返回结果: $34.35 
   
   
  FormatDateTime() 
   
  函数返回表达式,此表达式已被格式化为日期或时间 
   
  表达式 FormatDateTime(Date, [, NamedFormat]) 
   
  允许数据类型: NamedFormat 指示所使用的日期/时间格式的数值,如果省略,则使用 VBGeneralDate. 
   
  实例: <%=FormatDateTime("09/9/00", vbLongDate)%> 
   
  返回结果: Sunday, September 09, 2000 
   
   
  FormatNumber() 
   
  函数返回表达式,此表达式已被格式化为数值. 
   
  表达式 FormatNumber(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]]) 
   
  允许数据类型: Digit 指示小数点右侧显示位数的数值。默认值为 -1,指示使用的是计算机的区域设置。; LeadingDigit i指示小数点右侧显示位数的数值。默认值为 -1,指示使用的是计算机的区域设置。; Paren 指示小数点右侧显示位数的数值。默认值为 -1,指示使用的是计算机的区域设置。; GroupDigit i指示小数点右侧显示位数的数值。默认值为 -1,指示使用的是计算机的区域设置。. 
   
  实例: <%=FormatNumber(45.324567, 3)%> 
   
  返回结果: 45.325 
   
   
  FormatPercent() 
   
  函数返回表达式,此表达式已被格式化为尾随有 % 符号的百分比(乘以 100 )。 (%) 
   
  表达式 FormatPercent(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]]) 
   
  允许数据类型: 同上. 
   
  实例: <%=FormatPercent(0.45267, 3)%> 
   
  返回结果: 45.267% 
   
   
  Hour() 
   
  函数以24时返回小时数. 
   
  表达式 Hour(time) 
   
  允许数据类型: 
   
  实例: <%=Hour(#4:45:34 PM#)%> 
   
  返回结果: 16 
   
  (Hour has been converted to 24-hour system) 
   
   
  Instr() 
   
  函数返回字符或字符串在另一个字符串中第一次出现的位置. 
   
  表达式 Instr([start, ] strToBeSearched, strSearchFor [, compare]) 
   
  允许数据类型: Start为搜索的起始值,strToBeSearched接受搜索的字符串 strSearchFor要搜索的字符.compare比较方式(详细见ASP常数) 
   
  实例: <% 
   
  strText = "This is a test!!" 
   
  pos = Instr(strText, "a") 
   
  response.write pos 
   
  %> 
   
  返回结果: 9 
   
   
  InstrRev() 
   
  函数同上,只是从字符串的最后一个搜索起 
   
  表达式 InstrRev([start, ] strToBeSearched, strSearchFor [, compare]) 
   
  允许数据类型: 同上. 
   
  实例: <% 
   
  strText = "This is a test!!" 
   
  pos = InstrRev(strText, "s") 
   
  response.write pos 
   
  %> 
   
  返回结果: 13 
   
   
   
  Int() 
   
  函数返回数值类型,不四舍五入。 
   
  表达式 Int(number) 
   
  允许数据类型: 
   
  实例: <%=INT(32.89)%> 
   
  返回结果: 32 
   
   
  IsArray() 
   
  函数判断一对象是否为数组,返回布尔值 . 
   
  表达式 IsArray(name) 
   
  实例: <% 
   
  strTest = "Test!" 
   
  r