如何判断一个数组为空数组? 即没有元素也没有维数的数组??该如何判断 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用错误处理。如:on error goto err_handler print ubound(a) 'a在之前已声明,如: dim a() as integer exit suberr_handler: msgbox "a尚未redim" 只能用error判断吗?可我前面用了on error resume next 这怎么办? Private Function isArrEmpty(a()) As Boolean On Error GoTo errEmpty Dim x x = UBound(a) isArrEmpty = False Exit FunctionerrEmpty: isArrEmpty = TrueEnd FunctionPrivate Sub Command1_Click() Dim a() On Error Resume Next Debug.Print isArrEmpty(a)End Sub 求助:sql语句出错 在不去掉最化按钮时?? 控件中text长度的控制问题 100分求个例子 用like '%%' 不能查到该字段为空的记录吗? 请问DataGrid控件为什么不支持Data控件,还有没有除MSFlex控件之外的控件支持? 怎么解决这个问题? 急!高分求救! 新人,问题请教 给我EnumDisplaySettings这个API的声明就给分。 VB6.0的openfile控件在哪里??? 关于一个combobox的问题。
exit suberr_handler:
msgbox "a尚未redim"
可我前面用了on error resume next 这怎么办?
On Error GoTo errEmpty
Dim x
x = UBound(a)
isArrEmpty = False
Exit Function
errEmpty:
isArrEmpty = True
End Function
Private Sub Command1_Click()
Dim a()
On Error Resume Next
Debug.Print isArrEmpty(a)
End Sub