VB如何把小写变大写及标出其长度

来源:百度知道 编辑:UC知道 时间:2024/06/21 02:24:10

VB

小写变大写 UCase$
大写变小写 LCase$

Len 返回字符串长度

例如

Dim a As String
Dim b As String

a = "abc"
b = UCase$(a)

b 就是 "ABC"

Len(a) 返回a的长度 3

dim strTemp as string
dim strA as string
dim strB as string
dim intLen as integer

strTemp="我是aBcD123"
strA=lcase(strTemp)
strB=ucase(strTemp)
intLen=len(strTemp)

小写变大写 UCase()
大写变小写 LCase()
Len()返回字符串长度

小写变大写 UCase$
大写变小写 LCase$

Len 返回字符串长度

还不明白就查帮助