vb6.0 如何判断字符串内容是否为空,就是字符串里面全是空格,回车之类的

2025-02-22 13:16:37
推荐回答(1个)
回答1:

假设有字符串str
str=replace(str," ","")
str=replace(str,vbcrlf,"")
str=replace(str,vbcr,"")
str=replace(str,vblf,"")
if str="" then
'就说明是空
end if