深圳升蓝软件
数据库开发 .Net技术  |  ASP技术 PHP技术 JSP技术 应用技术类   
Hiblue Software

把句子的第一个字母转化为大写


March 25,2004
<%
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
%>
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved