Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
楼主: E-H-P

[分享] 如何判断一个数组为空数组

[复制链接]
发表于 2010-10-8 17:59 | 显示全部楼层

空数组的验证。

这个可以验证 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 => 空数组

sub test

dim a as string, arr

a=555

arr=split(a, "_")

if lbound(arr) > ubound(arr) then

   debug.print "空数组"

else

   debug.print "非空数组"

end if

end sub

回复

使用道具 举报

发表于 2010-10-11 17:56 | 显示全部楼层

sadfasdf32sadfasdf32sadfasdf32sadfasdf32sadfasdf32sadfasdf32sadfasdf32sadfasdf32sadfasdf32
回复

使用道具 举报

发表于 2010-10-12 11:53 | 显示全部楼层
回复

使用道具 举报

发表于 2010-10-12 11:56 | 显示全部楼层

判断维数?
回复

使用道具 举报

发表于 2010-10-12 13:33 | 显示全部楼层

看看是什么样的

[em01]
回复

使用道具 举报

发表于 2010-10-12 14:48 | 显示全部楼层

学习学习[em26][em27]
回复

使用道具 举报

发表于 2010-10-20 17:19 | 显示全部楼层

顶一下先!!
回复

使用道具 举报

发表于 2010-10-26 10:56 | 显示全部楼层

看看
回复

使用道具 举报

发表于 2010-11-19 01:59 | 显示全部楼层

谢谢楼主分享
回复

使用道具 举报

发表于 2010-11-23 13:26 | 显示全部楼层

学习ing
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|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.

快速回复 返回顶部 返回列表