把句子的第一个字母转化为大写
发表于:2007-06-30来源:作者:点击数:
标签:
<%
dim txtFname
txtFName = "steve schofield"
txtFName = UCase(Left(txtFName,1)) & Mid(txtFName,2)
response.write txtFname
%>
To call the function:
mynewvar = myfunc(txtFname)
Function syntax
function myfunc(a)
myfunc = ucase(left(a,1)) & lcase(mid(a,2))
end function
%>
原文转自:http://www.ltesting.net