文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > ASP常用函数
侵权投诉

ASP常用函数

ASP常用函数

---------------------------------汉字判断-----------------------------------
function isChinese(para)
on error resume next
dim str
dim i
if isNUll(para) then
isChinese=false
exit function
end if
str=cstr(para)
if trim(str)="" then
isChinese=false
exit function
end if
for i=1 to len(str)
c=asc(mid(str,i,1))
if c>=0 then
isChinese=false
exit function
end if
next
isChinese=true
if err.number<>0 then err.clear
end function
%>
----------------------------------------------------------------------------


-----------------------替换指定文件内字符串的函数---------------------------
<%
function FSOlineedit(filename,Target,String)
Dim objFSO,objCountFile,FiletempData
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objCountFile = objFSO.OpenTextFile(Server.MapPath(filename),1,True)
FiletempData = objCountFile.ReadAll
objCountFile.Close
FiletempData=Replace(FiletempData,Target,String)
Set objCountFile=objFSO.CreateTextFile(Server.MapPath(filename),True)
objCountFile.Write FiletempData
objCountFile.Close
Set objCountFile=Nothing
Set objFSO = Nothing
End Function
response.write FSOlineedit("test.txt","世界","明天是一个好天去")
%>
----------------------------------------------------------------------------
--------------------获取中文字符串拼音首字母串的函数------------------------
<%
response.write "<link href=style.css rel=stylesheet>"
if request.form("content")="" then
response.write "<center><form method=post action=asd.asp><input name=content type=text>__<input type=submit></form>"
else
function getpychar(char)
tmp=65536+asc(char)
if(tmp>=45217 and tmp<=45252) then
getpychar= "A"
elseif(tmp>=45253 and tmp<=45760) then
getpychar= "B"
elseif(tmp>=45761 and tmp<=46317) then
getpychar= "C"
elseif(tmp>=46318 and tmp<=46825) then
getpychar= "D"
elseif(tmp>=46826 and tmp<=47009) then
getpychar= "E"
elseif(tmp>=47010 and tmp<=47296) then
getpychar= "F"
elseif(tmp>=47297 and tmp<=47613) then
getpychar= "G"
elseif(tmp>=47614 and tmp<=48118) then
getpychar= "H"
elseif(tmp>=48119 and tmp<=49061) then
getpychar= "J"
elseif(tmp>=49062 and tmp<=49323) then
getpychar= "K"
elseif(tmp>=49324 and tmp<=49895) then
getpychar= "L"
elseif(tmp>=49896 and tmp<=50370) then
getpychar= "M"
elseif(tmp>=50371 and tmp<=50613) then
getpychar= "N"
elseif(tmp>=50614 and tmp<=50621) then
getpychar= "O"
elseif(tmp>=50622 and tmp<=50905) then
getpychar= "P"
elseif(tmp>=50906 and tmp<=51386) then
getpychar= "Q"
elseif(tmp>=51387 and tmp<=51445) then
getpychar= "R"
elseif(tmp>=51446 and tmp<=52217) then
getpychar= "S"
elseif(tmp>=52218 and tmp<=52697) then
getpychar= "T"
elseif(tmp>=52698 and tmp<=52979) then
getpychar= "W"
elseif(tmp>=

第1页

你可能喜欢

  • ASP代码
  • excel常用函数
  • 会计常用函数
  • 数据库常用函数
  • c语言常用函数
  • 统计常用函数

热门文档

相关文档

  • ASP常用函数列表

    ASP常用函数列表_理学_高等教育_教育专区。ASP常用函数列表ASP 常用函数列表 1 数学函数 1.1 取整函数 int(x) fix(x) 取不大于 x 的最大整数。 舍去 x 的...

  • ASP常用函数集

    ASP常用函数集_IT/计算机_专业资料。ASP语言的特点 1.允许使用VBscript或Javascript简易Script语言,并可在文件中结合Html; 2.无需编译,由WEBserver执行产生; 3.与...

  • asp 常用函数大全

    asp 常用函数大全_IT/计算机_专业资料。计算 asp 常用函数大全654227 函数 语法 功能 Abs Abs(num) 返回一个数的绝对值 Sqr Squ(num) 返回一个数的平方根 Sin...

  • ASP中的常用函数(函数大全)很全面的函数列表和说明

    ASP中的常用函数(函数大全)很全面的函数列表和说明ASP中的常用函数(函数大全)很全面的函数列表和说明隐藏>> ASP中的常用函数(函数大全)很全面的函数列表和说明 Abs...

  • ASP 常用函数与自定义函数

    ASP 常用函数 Array() 函数说明: 返回一个数组 语法格式: Array(list) 参数说明: 字符,数字均可 代码范例: Dim User=Array("张三","李四","王五") 返回...

  • asp常用函数

    asp常用函数_计算机软件及应用_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 asp常用函数_计算机软件及应用_IT/计算机_专业资料。所有的关键字和运算等...

  • asp常用函数

    asp 常用函数 Array() FUNCTION: 返回一个数组 SYNTAX: Array(list) ARGUMENTS: 字符,数字均可 EXAMPLE: <% Dim myArray() For i = 1 to 7 Redim Preserve...

  • asp常用函数

    asp常用函数asp常用函数隐藏>> VBScript 函数 功能说明 例子 Abs (数值) 绝对值。一个数字的绝对值是它的正值。空字符串 (null) 的绝对值,也是空字符串。未初...

  • ASP 常用函数集合

    常用函数集合常用函数集合隐藏>> ASP 常用函数集合 <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% StartTime=timer() '程序执行时间检测 '### '┌——VIBO—...

  • ASP常用函数

    ASP常用函数ASP常用函数隐藏>> ASP 常用函数 作者: bbsdq 查看次数: 52 发表时间: 2006/10/25 17:55 【论坛浏览】 ASP 常用函数 Array() FUNCTION: 返回一个...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email