首页  |  新闻  |  天气  |  联系我们  |  管理登陆 
逸飞和逸翔 家庭百事 科技纵横 家庭影集 网络文摘 音乐&艺术 友情链结
Business
中国瓷器
Computer/Internet
ASP/VB
SQL server
FLASH
Home Network
IIS SERVER
photoshop
search engine
Perl
General Problem Fix
Powerpoint
Router/Switch/Hub
Excel
FTP
.NET
Internet Security
Cloud Computing
GPG
PHP
语义搜索(semantic search)
股票
Glossaries
IPHONE
Books
 
Send to printer

function MakeCaseUpperLower(strtext)
'Response.Write strtext
'Response.end
dim splitarray
dim combinearray
MakeCaseUpperLower =""

splitarray = split(strtext," ")
icount = ubound(splitarray)
redim combinearray(icount)

for i = 0 to icount
combinearray(i) = Ulcase(splitarray(i))
MakeCaseUpperLower = MakeCaseUpperLower & " " & combinearray(i)
next
MakeCaseUpperLower = trim(MakeCaseUpperLower)
End function


function Ulcase(strtext)
Ulcase = ""
strSelected = strtext
strNewUCase = ""
strNewLCase = ""

strNewUCase = UCase(strSelected)
strNewLCase = LCase(strSelected)
'Response.Write strNewUCase & "<BR>" & strNewLCase
'Response.end
on error resume next
if Left(strSelected,1) = "(" and len(strSelected) > 1 then
 if Left(strSelected,2) = " " then
  Ulcase = "(" & mid(strNewUCase,3,1) + Right(strNewLCase, Len(strNewLCase)-3)
 else
  Ulcase = "(" & mid(strNewUCase,2,1) + Right(strNewLCase, Len(strNewLCase)-2)
 end if
else
 Ulcase = Left(strNewUCase,1) + Right(strNewLCase, Len(strNewLCase)-1)
end if
end function

back to top