VBA Str$=“Upper Case”难不成是定义一个变量Str是字符串型的?"Upper “把谁转换成大写?Select Case a$Case "A" To "Z"Str$="Upper Case"Case "a" To "z"Str$="Lower Case"Case "0" To "9"Str$="Number"Case ",",",",".",";"Str$="Punctuato

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 09:26:52

VBA Str$=“Upper Case”难不成是定义一个变量Str是字符串型的?"Upper “把谁转换成大写?Select Case a$Case "A" To "Z"Str$="Upper Case"Case "a" To "z"Str$="Lower Case"Case "0" To "9"Str$="Number"Case ",",",",".",";"Str$="Punctuato
VBA Str$=“Upper Case”难不成是定义一个变量Str是字符串型的?"Upper “把谁转换成大写?
Select Case a$
Case "A" To "Z"
Str$="Upper Case"
Case "a" To "z"
Str$="Lower Case"
Case "0" To "9"
Str$="Number"
Case ",",",",".",";"
Str$="Punctuaton"
Case ""
Str$="Null String"
Case Is

VBA Str$=“Upper Case”难不成是定义一个变量Str是字符串型的?"Upper “把谁转换成大写?Select Case a$Case "A" To "Z"Str$="Upper Case"Case "a" To "z"Str$="Lower Case"Case "0" To "9"Str$="Number"Case ",",",",".",";"Str$="Punctuato
在变量名后面加上美元符号“$”,就是声明这个变量是字符串,跟语句声明"dim Str as string "的作用是一样的.
类似的用法:
$ string
% integer
# double
& long
!single