vb 如何截取字符串??

X=AAA,123中间以逗号分隔截取值a=AAAb=123
2024-11-25 21:25:13
推荐回答(2个)
回答1:

x字符串变量,用mid函数就可以实现了
a=mid(x,1,3)
b=mid(x,5,3)

回答2:

strPair = Split(x, ",")
a = strPair(0)
b = strPair(1)