ucfirst 関数
ASP with VBScript で PHP の便利な関数を定義してみる (3)
ucfirst()
文字列の最初の文字を大文字にする関数。
関数の説明
ucfirst (strText as String) as string
ucfirst のソース
<%
Public Function ucfirst(strText)
Dim intLength
intLength = Len(strText)
strText = Ucase(Left(strText,1)) & Right(strText,intLength-1)
ucfirst = strText
End Function
%>
Public Function ucfirst(strText)
Dim intLength
intLength = Len(strText)
strText = Ucase(Left(strText,1)) & Right(strText,intLength-1)
ucfirst = strText
End Function
%>