空数组的验证。
这个可以验证 lbound>ubound => 空数组
sub test
dim a as string, arr
a=hhh
arr=split(a, "_")
if lbound(arr) > ubound(arr) then
debug.print "空数组"
else
debug.print "非空数组"
end if
end sub
这个不可以验证 lbound>ubound => 空数组
a=555
使用道具 举报
看看是什么样的
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )
GMT+8, 2024-5-29 14:48 , Processed in 0.749212 second(s), 8 queries , Gzip On, Yac On.
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.