VB什么函数识别text 有字符

2026年09月27日 12:12
有4个网友回答
网友(1):

len(string) 返回字符串的长度.
len(text1.text)

网友(2):

是想排除空格呢还可以 trim(text1.text)

len(trim(text1.text))=

这样可以排除首尾的空格
LTrim(string)

RTrim(string)

Trim(string)

网友(3):

len(text1.text)返回字符串的长度

网友(4):

if len(text1.text)>0 then