- 热门文章:
- · IIS6.0的设置
- · 一份ASP学习笔记(连载)
- · 用ASP实现邮箱访问
- · 递归遍历目录
- · IIS中的MIME格式
- · Background属性简介
- · MSWC.NextLink的使用方法
- · ping的高级用法
- · 查询一条记录,按所选择的字段输出。
- · 多文件多文本框上传程序
- · 用asp整理磁盘文件
- · 将ACCESS转化成SQL2000需要注意的几个问题
上一篇:一份ASP学习笔记(连载二) >>
用字典提取汉语的拼音的首字母
function getpychar(char)
tmp=65536+asc(char)
if(tmp>=45217 and tmp<=45252) or left(char,1)="a" or left(char,1)="A" then getpychar= "A"
if(tmp>=45253 and tmp<=45760) or left(char,1)="b" or left(char,1)="B" then getpychar= "B"
if(tmp>=45761 and tmp<=46317) or left(char,1)="c" or left(char,1)="C" then getpychar= "C"
if(tmp>=46318 and tmp<=46825) or left(char,1)="d" or left(char,1)="D" then getpychar= "D"
if(tmp>=46826 and tmp<=47009) or left(char,1)="e" or left(char,1)="E" then getpychar= "E"
if(tmp>=47010 and tmp<=47296) or left(char,1)="f" or left(char,1)="F" then getpychar= "F"
if(tmp>=47297 and tmp<=47613) or left(char,1)="g" or left(char,1)="G" then getpychar= "G"
if(tmp>=47614 and tmp<=48118) or left(char,1)="h" or left(char,1)="H" then getpychar= "H"
if left(char,1)="I" or left(char,1)="i" then getpychar= "I"
if(tmp>=48119 and tmp<=49061) or left(char,1)="j" or left(char,1)="J" then getpychar= "J"
if(tmp>=49062 and tmp<=49323) or left(char,1)="k" or left(char,1)="K" then getpychar= "K"
if(tmp>=49324 and tmp<=49895) or left(char,1)="l" or left(char,1)="L" then getpychar= "L"
if(tmp>=49896 and tmp<=50370) or left(char,1)="m" or left(char,1)="M" then getpychar= "M"
if(tmp>=50371 and tmp<=50613) or left(char,1)="n" or left(char,1)="N" then getpychar= "N"
if(tmp>=50614 and tmp<=50621) or left(char,1)="o" or left(char,1)="O" then getpychar= "O"
if(tmp>=50622 and tmp<=50905) or left(char,1)="p" or left(char,1)="P" then getpychar= "P"
if(tmp>=50906 and tmp<=51386) or left(char,1)="q" or left(char,1)="Q" then getpychar= "Q"
if(tmp>=51387 and tmp<=51445) or left(char,1)="r" or left(char,1)="R" then getpychar= "R"
if(tmp>=51446 and tmp<=52217) or left(char,1)="s" or left(char,1)="S" then getpychar= "S"
if(tmp>=52218 and tmp<=52697) or left(char,1)="t" or left(char,1)="T" then getpychar= "T"
if left(char,1)="u" or left(char,1)="U" then getpychar= "U"
if left(char,1)="V" or left(char,1)="v" then getpychar= "V"
if(tmp>=52698 and tmp<=52979) or left(char,1)="w" or left(char,1)="W" then getpychar= "W"
if(tmp>=52980 and tmp<=53640) or left(char,1)="x" or left(char,1)="X" then getpychar= "X"
if(tmp>=53689 and tmp<=54480) or left(char,1)="y" or left(char,1)="Y" then getpychar= "Y"
if(tmp>=54481 and tmp<=55289) or left(char,1)="z" or left(char,1)="Z" then getpychar= "Z"
end function
function getpy(str)
for i=1 to len(str)
getpy=getpy&getpychar(mid(str,i,1))
next
end function
%>
下一篇:IIS6.0的设置 >>
相关文章:
- · 项目中的模块
- · 将人民币的数字表示转化成大写表示
- · ASP中存储过程调用的两种方式,以及不采用存储过程的方式比较
- · 关于ASP的(VBScript)类,只希望给初学者看一看,希望对你们有帮助
- · 认识ASP内置的对象
- · ASP内置对象
- · ASP函数
- · 随机生成不重复记录的伪函数
- · 浅谈随机得控制
- · 一个关于日期选择的很实用的小东西
- · ASP的身份证验证代码改进
- · DHTML对象模型(About the DHTML Object Model)(三)
- · DHTML对象模型(About the DHTML Object Model)(二)
- · DHTML对象模型(About the DHTML Object Model)(一)
- · 全面考察“禁用浏览器后退按钮”
- · 如何快速找到ASP的错误
- · 中国高校勤工助学网站程序开发质量和管理标准化
- · asp上传
- · Form提交打开固定大小窗口的解决办法
- · 按钮链接乾坤大挪移
- · DW+ASP 玩转动态二级菜单
- · WEB环境中后台自动上传文件至数据库的实现
- · VBScript 函数集
- · 如何在生成的静态页面中显示文章被阅读的次数
- · 查看服务器所有Application变量、Session变量工具
- · 创建一个ASP通用分页类(二)代码部分
- · 创建一个ASP分页类(一)文章部分
- · 错误80004005信息处理方法
- · urldecode 方法补遗。
- · 建立你网站的投票机制![翻译]
- · IIS中的 MIME类型
- · 利用stream直接下载文件
- · 一个统计当前在线用户的解决方案,可以在聊天室、论坛、网站中使用
- · 浅谈TeeChart组件在ASP中的应用
- · 优化你的计数器
- · flash+asp小小研究·
- · ASP中一个字符串处理类(VBScript)
- · 让你的错误提示更生动
